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...

Why sql Data Reader object not created

Answer Posted / kalirajan

SqlConnection con = new SqlConnection("");
con.Open();
SqlCommand cmd = new SqlCommand("", con);

SqlDataReader dr;

dr = cmd.ExecuteReader();
while (dr.Read())
{
TextBox1.Text = dr[0].ToString();


}

dr.Close();


Try this code...

Is This Answer Correct ?    8 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read data with the sqldatareader ?

1028


What are the data access namespaces in .NET?

1257


What do you mean by performing asynchronous operation using command object?

1088


What is ado.net and its architecture?

1263


How can you add or remove rows from the datatable object of dataset?

1069


Define isolation?

1021


What is namespace in ado.net?

1077


What is connected architecture in ado.net?

1178


Explain ado.net features? Benefits? Drawbacks?

1107


Name which operations can you not perform on an ado.net dataset?

1038


What is difference between datareader and dataadapter?

1089


Describe the disconnected architecture of ADO.NET’s data access model.

1106


What is a sqldataadapter?

1053


What is the difference between sqlcommand and sqldataadapter?

1033


What is a dynaset in access?

1103