Searching multiple MS SQL Tables

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2007
Posts: 44
Reputation: TaoistTotty is an unknown quantity at this point 
Solved Threads: 0
TaoistTotty TaoistTotty is offline Offline
Light Poster

Searching multiple MS SQL Tables

 
0
  #1
Aug 5th, 2007
I would be grateful if anyone could let me know of an easy way of searching multiple tables for information.

I would like to display any found results in a grid alowing the user to choose the correct one and have this disply in the main form.

If this easy to do? I know it will need joins etc., but these are new to me.

Thanking you in advance.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Searching multiple MS SQL Tables

 
0
  #2
Aug 5th, 2007
If you are looking to pull out just one value (field) then this is simple enough. But databases are not like that, they're linked to different tables. How they are linked will depend on how easy it is to get the correct data out.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 44
Reputation: TaoistTotty is an unknown quantity at this point 
Solved Threads: 0
TaoistTotty TaoistTotty is offline Offline
Light Poster

Re: Searching multiple MS SQL Tables

 
0
  #3
Aug 5th, 2007
The tables are one table linked to three or four others (each of these are not link to each other)

Does this help?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Searching multiple MS SQL Tables

 
0
  #4
Aug 6th, 2007
Is it possible to show us a schematic of your tables, how they are linked and what are the primary keys etc.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 44
Reputation: TaoistTotty is an unknown quantity at this point 
Solved Threads: 0
TaoistTotty TaoistTotty is offline Offline
Light Poster

Re: Searching multiple MS SQL Tables

 
0
  #5
Aug 6th, 2007
Please find the information below, thanks for you help.
Attached Thumbnails
Diagram.jpg  
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Searching multiple MS SQL Tables

 
0
  #6
Aug 6th, 2007
I can barely read that text can you post a picture where all the text is big and clear to read. Thanks.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 44
Reputation: TaoistTotty is an unknown quantity at this point 
Solved Threads: 0
TaoistTotty TaoistTotty is offline Offline
Light Poster

Re: Searching multiple MS SQL Tables

 
0
  #7
Aug 7th, 2007
Is this better?
Attached Thumbnails
Diagram1.jpg  
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Searching multiple MS SQL Tables

 
0
  #8
Aug 7th, 2007
Hi,

what u actually want..? Search all the fields of all the tables for any one Specific condition...?

-Vee
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 44
Reputation: TaoistTotty is an unknown quantity at this point 
Solved Threads: 0
TaoistTotty TaoistTotty is offline Offline
Light Poster

Re: Searching multiple MS SQL Tables

 
0
  #9
Aug 7th, 2007
Vee, well put that is what I want.

I know this seems strange, but the old DB (propitiatory) can do this and they want to keep that functionality.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Searching multiple MS SQL Tables

 
0
  #10
Aug 7th, 2007
Hi,

What is the Database u r using..? Access..?

-Vee
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC