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
What is the difference between ADO and ADO.Net?
Explain what are acid properties?
Explain what is datagrid with an example?
What is data access pattern?
Explain the difference between data reader and data adapter?
What is ado net stands for?
Why do we need ado.net?
How many major types of connection objects in ADO.NET?
What are the steps to connect to a database?
How to check if the Dataset has records ?
What is the difference between a datareader and a dataset?
What are the features of ado.net?
What is ado circle?
How to aggregating data across related tables?
How can you add or remove rows from the datatable object of dataset?