About ado.net components/objects. Usage of data adapters and
tell the steps to retrieve data ?
Answer Posted / kalirajan
ADO.NET Obj:
SqlConnection
SQlcommand
SqlDataReader
SqlDataAdapter
Dataset
Retrieving Data:
SqlConnection con = new SqlConnection("");
con.Open();
SqlCommand cmd = new SqlCommand("select * from Tbl", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How can you add or remove rows from the datatable object of dataset?
Describe briefly an ADO.NET Dataset ?
What are the advantage of ado.net?
Which method in OLEDBAdapter is used to populate dataset with records?
What are the connected and disconnected modes in ado.net?
What is ado control?
How we can provide data to ado.net?
What is ado.net explain with diagram?
What is the difference between oledb sql server and oledbdotnet provider?
How to copy the contents from one table to another table and how to delete the source table in ado.net?
What is a datareader object?
What is difference between ado and other data object?
What are the difference between readonly vs. Const?
What is sqldatareader in ado.net?
What is ado rdo dao in visual basic?