|
-
Aug 15th, 2003, 11:09 AM
#1
Thread Starter
Addicted Member
SQL query on two datbase
Hi all,
Can we run a SQL query from ADO.net
For example TABLE1 is in DATABASE1 and TABLE2 is in DATABASE2
can we run query likey this (as concept, not syntax) :
select * from table1,table2 from database1,database2 where table1.Field1=table2.Field2
==> here Field1 and Field2 are same type of fields in Table1 and Table2 respectively
I found related information here
Thanks
-
Aug 18th, 2003, 02:44 PM
#2
Thread Starter
Addicted Member
No senior member has read ?
-
Aug 18th, 2003, 05:35 PM
#3
Sleep mode
use two different queries on the two tables , and fill the datasets with returned values , merge them . Use Find method to look for any value . Try that .
-
Aug 22nd, 2003, 10:00 AM
#4
Thread Starter
Addicted Member
Thanks Pirate
I will try it.
-
Aug 22nd, 2003, 12:11 PM
#5
ORR....
You can
Code:
SELECT *
FROM Table1 T1
INNER JOIN db2Name..Table2 T2
ON T1.Field1=T2.Field2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|