Using datareaders with sqltransactions
问题 I am using SqlTransaction s in my code for roll back purpose. Within the transaction I got multiple statements to be executed with may include selects inserts and updates. All these statements are within the scope of the sqltransaction . Everything works fine just for one problem. I am using datareader s for select statements . And these readers are closed once they are used. This forces the connection to be lost and every thing fails. Does any one have a solution on whether I can use