Populating a DataSet from a DataAdapter

Total Post:214

Points:1642

C#  ADO.Net  .NET 
C#
 1037  View(s)
Ratings:
Rate this:
How to populate dataset from dataadapter?
I am really beginner.. sorry for asking very basic question.

Please help
  1. Re: Populating a DataSet from a DataAdapter

    Go through following articles...Good for beginners

    https://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:

    string queryString = "SELECT * FROM Sample_Table_1";
    SqlDataAdapter adapter = new SqlDataAdapter(queryString, con);

    DataSet ds = new DataSet();
    adapter.Fill(ds, "Sample_Table_1");

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.