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 is the default provider in ado.net?

0 Answers  


What is a datagrid?

4 Answers  


When we are running the Application, if any errors occur in the Stored Procedure then how will the server identify the errors?

5 Answers   HCL,


What is bubbled event?

0 Answers  


Explain the basic use of "dataview" and explain its methods.

0 Answers  


Explain how to create dynamic gridview?

0 Answers  


What is sqldatasource?

0 Answers  


What is the difference between oledbreader and datasetwhile connecting?

1 Answers  


Give an example that shows how to execute a stored procedure in ado.net?

0 Answers  


What is the role of clr?

0 Answers  


What is dataset object? Explain the various objects in dataset.

0 Answers  


What happens when u try to update data in a dataset in .NET while the record is already deleted in SQL SERVER as backend?

5 Answers  


Categories