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 we do with the object of ado.net dataset after using it?

0 Answers  


Explain the difference between ado and ado.net?

0 Answers  


WHAT Are the major major compnents of a data provider in ADO.net.

14 Answers   Infosys, Wipro,


What is a dynaset in access?

0 Answers  


What is aggregate root?

0 Answers  


Explain how can we load multiple tables in to dataset?

0 Answers  


Explain the difference between sqlcommand object and command behavior object?

0 Answers  


How to aggregating data across related tables?

0 Answers  


Which method is used by command class to execute SQL statements that return single value?

0 Answers  


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

2 Answers  


Explain the ADO . Net Architecture ( .Net Data Provider) ?

2 Answers  


How to check if the Dataset has records ?

0 Answers   NA,


Categories