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

How do we invoke queries from the application ?

2 Answers   ICICI, Microsoft,


What is difference between executenonquery and executequery?

0 Answers  


What are the two fundamental objects in ADO.NET?

6 Answers  


What is disconnected data?

0 Answers  


Which method do you invoke on the DataAdapter control to load your generated dataset with data?

4 Answers  


What is a datagrid?

4 Answers  


How to Read, Add, Update and Delete record in Entity Framework ?

0 Answers  


What is the key feature of ADO.NET compared to ADO ?

3 Answers   TCS,


What is Dataset Object?

0 Answers  


Explain why edit is not possible in repeater?

0 Answers  


What is difference between dataset and datatable?

0 Answers  


Explain how can we load multiple tables in to dataset?

0 Answers  


Categories