About ado.net components/objects. Usage of data adapters and
tell the steps to retrieve data ?
Answer / 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 |
What provider ado.net use by default? Explain the role of data provider in ado.net?
What are the major challenges in accessing data from a database?
What are all the different methods under sqlcommand?
Why do we use sqldataadapter?
Command objects uses, purposes and their methods.
Can datareader hold data from multiple tables?
Do we use stored procedure in ADO.Net?
What is typed dataset ?
What is ado.net components?
What is linq and entity framework?
how to display empty table to datagrid
What DataReader class do in ADO.NET ?