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

How do we invoke queries from the application ?

Answer Posted / vivek

Command object is only one to execute queries in the
backend.
Ex:
SqlConnection cn=new SqlConnection();
SqlCommand cmd=new SqlCommand("SELECT * FROM EMP",cn);
cmd.ExecuteNonQuery();
cmd.ExecuteReader();
cmd.ExecuteScalar();
Cmd.ExecuteXmlReader();
command object has only these 4 methods to execute queries
in the backend.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the overview of ado.net architecture?

930


What is read only and forward only in ado.net?

887


Explain how to create dynamic gridview?

914


What is the difference in an abstract class and an interface?

941


Explian About DataAdapters

964


Why do we serialize data?

881


What is dataset and datatable in ado.net?

917


What is ado.net and its features?

914


What is execute scalar in ado.net?

900


The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx

1964


What is ole word?

888


What is ado control?

900


What is data view and variable view?

852


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

966


What is a datagridview?

963