Hi Expert,
I came across a sample on ADO.Net, where a transaction was being done without setting the command's transaction property as in code below.
Is this possible Or one needs to explicitly set the command's transaction property?
// Start a local transaction.
SqlTransaction sqlTran = connection.BeginTransaction();
// Enlist a command in the current transaction.
SqlCommand command = connection.CreateCommand();
-----
-----
sqlTran.Commit()
Any help on above is really appreciated.
Sumit Kesarwani
19-Jun-2013