Q: datset fill

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If my dataset contains more than one table, and my sqlSelectCommand is only
selecting from one table, does sqlDataAdapter1.Fill(dataSet11) know which
table it should update?
 
Its a good idea to pass it the table that you want to fill. I think you can
do something like this:

sqlDataAdapter1.Fill(dataSet11, "YourTableName")
 
Ok. aberrantly no help on this site.
it seems this works. sqlDataAdapter1.Fill(dataSet11.Tables[currentTableName]);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top