Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a SP deadlock with itself?
Message
De
11/03/1999 17:40:07
 
 
À
11/03/1999 08:18:11
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00196295
Message ID:
00196562
Vues:
44
>Now, I can understand the deadlock mechanism. but where the source and destination databases are concerned, I AM THE ONLY USER. Can a SP deadlock with itself???

SQL Server is supposed to recognize that a lock is being held by the same connection and ignore it. The only time I seen strange things like this is when I was creating temporary tables using SELECT INTO. SELECT INTO will place locks on some of the system tables in tempdb. If you issue the SELECT INTO within an explicit transaction, SQL Server will hold the locks until the transaction is terminated. The problem is that the locks interfer with the CHECKPOINT process.

Are you using SELECT INTO?

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform