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();
Any help on above is really appreciated.