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 ?

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


Please Help Members By Posting Answers For Below Questions

How to load multiple tables into a dataset?

1033


What is ado asp?

978


What is bubbled event can you please explain?

1019


What is the difference between DataReader and DataSet in ADO.NET?

1138


What is difference between connected and disconnected architecture in ado.net?

1138


How would you connect to database using .NET?

1018


What is executequery?

937


What is a serialized object?

995


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

1024


differance between ADO vs ADO.Net?

1040


What is ado full form?

1006


What does ado stand for in ado.net?

1069


how Sequence to connect and retrieve data from database using dataset?

1272


How can we add/remove row's in "datatable" object of "dataset"?

1002


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

1083