Feb 20, 2008 #1 cesaru Technical User Jan 31, 2008 19 US I want to union to different table from two different datasources one is an informix db and the other an Sql Express db. The two tables are not the same but they share common columns. any ideas will be greeeeeat! thank you very much!
I want to union to different table from two different datasources one is an informix db and the other an Sql Express db. The two tables are not the same but they share common columns. any ideas will be greeeeeat! thank you very much!
Feb 20, 2008 #2 ca8msm Programmer May 9, 2002 11,327 GB You could use a DataSet, load one set of data into the first DataTable and one into the second, and then set up relationships between then. ------------------------------------------------------- Mark, [URL unfurl="true"]http://aspnetlibrary.com[/url] [URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions [URL unfurl="true"]http://weblogs.asp.net/marksmith[/url] Upvote 0 Downvote
You could use a DataSet, load one set of data into the first DataTable and one into the second, and then set up relationships between then. ------------------------------------------------------- Mark, [URL unfurl="true"]http://aspnetlibrary.com[/url] [URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions [URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
Feb 22, 2008 Thread starter #3 cesaru Technical User Jan 31, 2008 19 US Thanks! I found this good example for anybody who is looking for the same thing. http://home.hot.rr.com/graye/Articles/DataTableJoins.htm but I wonder if for my case the following could be simpler. I have my sqlexpress db with some data and I wanted to related to a informix db. is it easier,faster if I import the informix table to a temp table in my sql server then just do a reqular query there? thanks for all your help. Upvote 0 Downvote
Thanks! I found this good example for anybody who is looking for the same thing. http://home.hot.rr.com/graye/Articles/DataTableJoins.htm but I wonder if for my case the following could be simpler. I have my sqlexpress db with some data and I wanted to related to a informix db. is it easier,faster if I import the informix table to a temp table in my sql server then just do a reqular query there? thanks for all your help.
Feb 22, 2008 #4 jbenson001 Programmer Jan 7, 2004 8,172 US The way you suggested is the way I would go about doing it. It would definately be faster, and easier, coding wise. Upvote 0 Downvote
The way you suggested is the way I would go about doing it. It would definately be faster, and easier, coding wise.