Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Deadlock blues
I am trying to rewrite 2 stored procs that have been perpetually having
deadlock issues against each other.  The current problem is that the
pieces of SQL that are involved in the deadlock are both in a
transaction.  The contention is for a single table.  Would moving the
offending piece of code in stored proc #1 out of transaction solve the
deadlocking issue?

Thanks

Report this thread to moderator Post Follow-up to this message
Old Post
Frank Rizzo
01-31-06 01:23 AM


Re: Deadlock blues
We would need to see the code.  Moving a statement out of a tran may not
give you the desired results when it comes to data integrity. Most deadlocks
are caused by updating the tables in different orders.

--
Andrew J. Kelly  SQL MVP


"Frank Rizzo" <none@none.com> wrote in message
news:%23HxuQteJGHA.208@tk2msftngp13.phx.gbl...
>I am trying to rewrite 2 stored procs that have been perpetually having
>deadlock issues against each other.  The current problem is that the pieces
>of SQL that are involved in the deadlock are both in a transaction.  The
>contention is for a single table.  Would moving the offending piece of code
>in stored proc #1 out of transaction solve the deadlocking issue?
>
> Thanks



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew J. Kelly
01-31-06 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 05:05 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006