DataAdapter Fill method

  • Thread starter Thread starter STom
  • Start date Start date
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
 
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.
 
Back
Top