PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Transaction Isolation Level

Reply

Transaction Isolation Level

 
Thread Tools Rate Thread
Old 29-04-2008, 01:14 PM   #1
Andreas Pfanner
Guest
 
Posts: n/a
Default Transaction Isolation Level


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


  Reply With Quote
Old 29-04-2008, 08:36 PM   #2
Mary Chipman [MSFT]
Guest
 
Posts: n/a
Default Re: Transaction Isolation Level

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

On Tue, 29 Apr 2008 14:14:03 +0200, "Andreas Pfanner"
<andreas.pfanner@teleport.vol.at> wrote:

>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
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off