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 ?

Answers were Sorted based on User's Feedback



How do we invoke queries from the application ?..

Answer / 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

How do we invoke queries from the application ?..

Answer / shwetha

by the namespace using System.Data.Sqlclient


by using Sqlcommand

Dim cmd as new Sqlcommand("Queries");

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More ADO.NET Interview Questions

Being fresher How would i answer to the question that what is your salary exception?

4 Answers  


what is ado.net

6 Answers   Karrox, SunGard,


How do you find the count of records in a dataset?

0 Answers  


If we are not returning any records from the database, which method is to be used?

0 Answers  


If a table contains 20000 records. In a page at each time 100 records to be displayed.

0 Answers  


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

0 Answers  


how to display empty table to datagrid

3 Answers   LG Soft,


What are the three Ado objects?

6 Answers   Microsoft, StarSoft,


What is ado.net code?

0 Answers  


Difference between sqlcommand and sqlcommandbuilder?

0 Answers  


What are disadvantages of microsoft-provided data provider classes in ado.net?

0 Answers  


How is entity framework different from ado.net?

0 Answers  


Categories