Re: DEADLOCKS

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Greg Linwood (g_linwoodQhotmail.com)
Date: 07/14/04


Date: Wed, 14 Jul 2004 14:50:35 +1000

Hi Gina

Are you controlling transactions in the web layer .net code or in SQL Server
TSQL code?

If you're doing it in the .net code, make sure you set the transaction
isolation level to the lowest acceptable level to support your intended
transactional semmantics. This usually means setting it to Read Uncommitted.

Regards,
Greg Linwood
SQL Server MVP

"Gina L. Hernandez" <pdwhitt@nospam.wdsinc.com> wrote in message
news:esDGuwRaEHA.3704@TK2MSFTNGP09.phx.gbl...
> Hello :
>
> I have a table called invmstr, and my WEB-SYSTEM written in VISUAL.NET and
> ASP.NET and SQLSERVER, is giving me a lot of deadlocks because all my
users
> are trying to update, write or delete this table. What should I set in
> the database or in my stored procedures to avoid this deadlocks?
>
>
>
> Thanks,
>
>
>
> Gina
>
>
>
>
>
>
>
>



Relevant Pages

  • Re: How can I minimize deadlocks ??
    ... Another thing to add is to handle deadlocks in your application. ... that Tom has suggested. ... Pro SQL Server 2000 Database Design ... Wherever possible, eliminate transactions, as I have shown. ...
    (microsoft.public.sqlserver.programming)
  • Re: Identity column question
    ... Frequent deadlocks usually indicate that your application is not ... * Keep transactions as short as possible. ... opposing order. ... My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis ...
    (microsoft.public.sqlserver.programming)
  • Re: ADO.NET Transaction
    ... The SqlBulkCopy class can take anything you can expose with a DataReader and send it to SQL Server in a single high-speed operation. ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... Client transactions put too much schema-dependent, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: ADO.NET Transaction
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... Is it always a bad reason to do client transactions? ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: ADO.NET Transaction
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... Client transactions put too much schema-dependent, ...
    (microsoft.public.dotnet.framework.adonet)