PC Review


Reply
Thread Tools Rate Thread

Transaction Isolation Level

 
 
Andreas Pfanner
Guest
Posts: n/a
 
      29th Apr 2008
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
 
 
 
 
Mary Chipman [MSFT]
Guest
Posts: n/a
 
      29th Apr 2008
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"
<(E-Mail Removed)> 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
transaction isolation level =?Utf-8?B?TWFyaw==?= Microsoft VB .NET 1 23rd Aug 2006 11:05 PM
Transaction Isolation Levels cj Microsoft C# .NET 2 15th Apr 2006 05:19 PM
Isolation Level Vanaja Edara Microsoft ADO .NET 3 25th Feb 2004 08:08 PM
HELP! SET TRANSACTION ISOLATION LEVEL query. Eric Porter Microsoft C# .NET 3 27th Nov 2003 01:31 PM
Isolation Level in COM+ 1.0 Ural Microsoft ADO .NET 0 18th Jul 2003 03:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:10 AM.