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 to call the SQL commands asynchronously in ADO.NET
version 2.0

Answer Posted / sandyni

In the asynchronous method ,the client creates a SqlCommand
object.the client application also sets the async attribute
in the connection string to true. Next, the client invokes
any of the asynchronous methods such as
beginExecuteNonQuery, BeginExecuteReader, or
BeginExecuteXmlReader through the SqlCommand object.

After executing the sql command the asynchronous methods
will close by using
EndExecuteNonquery,EndExecuteScalar,EndExecuteReader.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1025


Define the data provider classes that is supported by ado.net?

980


What is connection in ado.net?

952


Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?

1150


What is oledb connection?

988


List the 4 common ado.net namespaces?

1170


What is the difference between statement and preparedstatement interface?

997


What is a non query?

932


What is full form of ado?

1065


I loaded the dataset with a table of 10 records. One of the records is deleted from the backend, how do you check whether all the 10 records were present while updating the data(which event and steps) and throw the exception 28 can datareader hold data from multiple tables?

1023


What are the key events of sqlconnection class?

1193


What is the difference between data grid and data repeater?

1079


What are the benefits of using ado.net?

1004


Define Execute Reader?

1065


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

1329