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 is the provider being used to access oracle database?
What is disconnected scenario in entity framework?
What is difference between sqldatareader and sqldataadapter?
What is basic use of data view?
What is the difference between data grid and data repeater?
What are dataproviders?
What is linq and entity framework?
Define atomicity?
Explain ODP.net
Which is faster entity framework or ado.net?
Explain the different row versions available in table?
What is execute scalar in ado.net?
What are the 3 major types of connection objects in ado.net?
What are all features of ADO.Net?
Which method is used by command class to execute SQL statements that return single value?