How to fill DataSet with data?

 Posted by Abhisek on 1/28/2010 | Category: ADO.NET Interview questions | Views: 4018

To fill DataSet with data we have to use Fill() method of DataAdapter object.

Fill() has several overloads. But the simple one is
Fill(DataSet,  DataTable)

The first parameter will take the name of the dataset to be filled and the second parameter specifies the name of the DataTable in the DataSet which will contain the data.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response