Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


About ado.net components/objects. Usage of data adapters and
tell the steps to retrieve data ?



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

Post New Answer

More ADO.NET Interview Questions

What DataReader class do in ADO.NET ?

0 Answers   NA,


What is Data view?

0 Answers  


How to add a javaScript function in a datagrid?

0 Answers   C DAC, CDAC,


How do you merge two datasets into the third dataset in a simple manner?

3 Answers   IBM,


Explain what is datagrid with an example?

0 Answers   C DAC, CDAC,


What is typed dataset ?

0 Answers   NA,


What is the role of data provider in ado.net?

0 Answers  


How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?

0 Answers   CGI,


What is ole2 format?

0 Answers  


What is two way data binding android?

0 Answers  


What are major difference between classic ADO and ADO.NET?

2 Answers  


Is ado.net an orm?

0 Answers  


Categories