POPULATING A DATASET FROM A DATAADAPTER

Tarun Kumar

Total Post:214

Points:1642
Posted by  Tarun Kumar
C#  ADO.Net  .NET 
C#
 582  View(s)
Ratings:
Rate this:
How to populate dataset from dataadapter?
I am really beginner.. sorry for asking very basic question.

Please help
  1. Uttam Misra

    Post:126

    Points:906
    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!