DataAdapter Fill method

S

STom

I have a situation where at one point in my application, I will need to add
rows to a table in my dataset, but when I first create a new instance of the
application, there will be no rows in the data table.

If when using a data adapter, if I call the Fill method and the
SQLDataAdapter select command calls a stored procedure, will I still have a
data table in the dataset even if there are no rows? I am just trying to
figure out if I need to create my table in code or if the data adapter will
create it.

Thanks.

STom
 
S

Scott M.

You can call the DataAdapter's "FillSchema" method which creates an empty
table with all of the original table's columns and datatypes but no data.
 

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

Top