Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Issue explicit lock for testing
Message
 
 
À
11/11/2008 11:03:01
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01347107
Message ID:
01361118
Vues:
35
>>How exactly did you implement it?
>
>
>
>
>-- Will hold a lock on a record until COMMIT is issued. Exec 1 line at a time in SMSS
>
>
>BEGIN TRANSACTION
>
>SELECT SomeColumn FROM dbo.MyTable WITH (TABLOCKX) WHERE SomeCriteria
>
>(Now run application code against locked record)
>
>COMMIT  -- Releases lock
>
>
Thanks a lot, there was someone on another forum with the similar problem.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform