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

What is ole in vb?

897


What is ado.net in mvc?

924


What is fill method in ado.net?

972


How to creating a SqlCommand Object?

1133


Does entity framework use ado.net?

969


How to pass multiple tables in datasets simultaneously?

1054


What are the namespaces used in ado.net for data access?

976


What is the role of clr?

946


What are all the classes that are available in System.Data Namespace?

1002


What is the maximum pool size in ado.net connection string?

937


What is the difference between data reader and data adapter?

1024


What is ado recordset?

983


Explain sqlconnection object?

994


Can we do database operations without using any of the ado.net objects?

978


How can we save all data from dataset?

994