Answer Posted / anup kumar
yes, it is posible. by using NextResult() method of
sqldatareader.
sqlcommand cmd = new sqlcommand("select id from emp ; select
dptid from dpt",YourConnection);
//check connection status and open the connection
if(rdr.hasrows)
{
//read id from emp
}
if (rdr.HasRows() == true)
{
//read dptid from dpt
}
//close the connection
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the data providers in ADO.NET framework?
What are the benefits of using of ADO.NET in .NET 4.0?
Why do we use sqldataadapter?
Explain the overview of ado.net architecture?
Define atomicity?
How do I delete a row from a DataTable?
What Is Difference Between Ado And Ado.net?
Define data access layer?
Explain ado.net features?
What is ambient transaction?
What is a string variable?
How to generate a single aggregate?
Is ado.net an orm?
What is the difference between DataReader and DataSet in ADO.NET?
What is the difference between the clone() and copy() methods of the dataset class?