string queryString = "SELECT * FROM Sample_Table_1"; SqlDataAdapter adapter = new SqlDataAdapter(queryString, con);
DataSet ds = new DataSet(); adapter.Fill(ds, "Sample_Table_1");
Liked By
Write Answer
Populating a DataSet from a DataAdapter
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Uttam Misra
24-Feb-2016https://www.mindstick.com/Articles/19/dataset
https://www.mindstick.com/Blog/684/dataset-datatable
https://www.mindstick.com/Articles/131/inserting-data-and-fetching-records-from-database-in-c-sharp-dot-net
sample code: