DataAdapter in Asp.Net

InfoPath alternatives for form designing SharePoint

In this article we will discuss about what is a dataadapter in and how to use dataadapter in Also you can check out my previous posts on: Adding meta tags to aspx pages in, Bind gridview using datareader in and Method Overloading in C#.Net.

DataAdapter will act as a mediator between dataset and database server. This will perform 2 things:

– It will read data from database and place within dataset in the form of datatables.

– The manipulation on the dataset table will be updated with database.

string conn = “You connection string will goes here”;


SqlConnection conn = new SqlConnection(conn);

SqlDataAdapter da = new SqlDataAdapter(strSQL, conn);

DataSet ds = new DataSet();

da.Fill(ds, “Employees”);

Here Employees is the datatable name.

Check out the below diagram how it is working:

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site

View all posts by Bijay Kumar →

Leave a Reply