I have some code that goes like this:
SqlTransaction trans = conn.BeginTransaction("MyTransfer");
cmdStep1.ExecuteScalar();
cmdStep2.ExecuteScalar();
cmdStep3.ExecuteScalar();
QueryTheDatabaseForSomeData() // here it calls another method that queries the database
trans.Commit();
My code hangs on the select query (QueryTheDatabaseForSomeData()) that is in the middle of the ADO SqlTransaction, as shown in the psuedo-code above.
This code seemed to work before, but it has suddenly stopped working.
Can someone tell me if it is possible to structure the code like this, so that there is select query function in the middle of the ADO SqlTransaction?
Thanks