TedN Posted March 16, 2007 Posted March 16, 2007 (edited) I've created two query strings to get data from various tables in a database. I would like to fill two table tables in a dataset with the data from each query string, e.g. sqlStr1 data into dsTable1 sqlStr2 data into dsTable2. I've tried the following and many other combinations but none seem to work. con.Open cmd.CommandText = sqlStr1 da.Fill(ds, "dsTable1") cmd.CommandText = sqlStr2 da.Fill(ds, "dsTable2") con.Close I don't need any interoperability between the two tables. I'm placing the data in separate tables simply for the sake of clarity. I would also prefer not to combine the two query strings. Thanks, Ted Edited March 16, 2007 by TedN Quote
TedN Posted March 17, 2007 Author Posted March 17, 2007 OK. Found the answer. Use two DataAdapters. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.