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 bubbled event?
What is ado asp?
What is an ado?
Explain why edit is not possible in repeater?
What is the meaning of object pooling?
Which is faster sqldataadapter and sqldatareader?
What is row state?
Which namespaces are used for data access?
What is the current version of entity framework?
Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.
What is the difference between linq and ado.net?
What is ole db query?
Define the executescalar method?
The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx
Which provider is used to connect ms access, oracle, etc…?