hi i had some good question how do we join two datasets from 2 different tables in two different servers into one application can any one give that small piece of code
About datasets
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Jul 17, 2008, 2:05 PM EDT
You can't do that on single shot. You have two options:
1. Create a linked server in DB invironment, then create a SP to take care of it.
2. Get two DataSets for them, then merge two datatables into one based on usersID.
Hope it gives you some idea.
If it is in same server then try this:
SELECT a.userID, b.usersFirstName, b.usersLastName FROM databaseA.dbo.TableA a inner join database B.dbo.TableB b ON a.userID=b.userID
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Aug 1, 2008, 6:54 AM EDT
Hi,
I agree with above post, Its always good to maintain these kind of relationships at the database level. If you want this i Datasets then check out the below link
http://www.functionx.com/vbnet/adonet/relationships.htm
Thanks -- Vj
http://dotnetjvj.blogspot.com