Transaction Isolation Level

A

Andreas Pfanner

Hello,

Is the following code handled different in .NET 1.1 and .NET 2.0?

public SqlTransaction BeginTransaction()
{
return this.BeginTransaction(IsolationLevel.Unspecified, null);
}


It seems that running this code and starting a transaction under 2.0 we run
into locking issues if more than one transaction should be opened at the
same time, while running on 1.1 there are no problems. Does it make a
different to use IsolationLevel.Unspecified there?

Any hint would be great.

Thanks!

Best Regards,
Andreas Pfanner
 
M

Mary Chipman [MSFT]

You'd need to open a Profiler trace to see what's going on in the
database. What operations are you performing inside of the
transaction? Perhaps explicitly specifying an isolation level would
help the server allocate resources more efficiently.

--Mary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top