Let's say I have some C# code that executes two SQL commands:
var MyTransaction = DbConnection.BeginTransaction();
//using MyTransaction: INSERT INTO TABLE_1 (ID, SOURCE_FIELD) VALUES (99, 'HELLO')
//using MyTransaction: UPDATE TABLE_2 SET DESTINATION_FIELD = (SELECT SOURCE_FIELD FROM TABLE_1 WHERE ID = 99)
MyTransaction.Commit();
Will the second SQL statement see the new record with ID '99' even though I didn't commit the transaction until the end?