To enlist a connection into a TransactionScope, you need to specify 'Enlist=true'
in its connection string and open the connection in the scope of that TransactionScope object.
You can use SqlConnection.BeginTransaction
on an existing connection.
Update: Can you use BeginTransaction
like this:
using (SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open();
SqlCommand command = connection.CreateCommand();
SqlTransaction transaction;
// Start a local transaction.
transaction = connection.BeginTransaction("SampleTransaction");
// Must assign both transaction object and connection
// to Command object for a pending local transaction
command.Connection = connection;
command.Transaction = transaction;
...
...
}