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
Why ca not we use multiple inheritance and garbage collector paralelly in .net?
How to add a check box or a dropdown list to a column in a datagrid?
Which architecture does Datasets follow?
How to work with disconnected data - the dataset and sqldataadapter?
Which is faster entity framework or ado.net?
What is oledb connection?
What are the difference between readonly vs. Const?
Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?
Why do we need ado.net?
What are three methods for displaying data in a syncfusion datagrid
Do you use stored procedure in ado.net?
What is the difference between Dataset. clone and Dataset.copy?
What is the difference between data grid and data repeater?
What are all the different authentication techniques used to connect to MS SQL Server?
What do you know about ado.net's methods?