Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sp_getapplock syntax
Message
De
31/12/2005 13:28:05
 
 
À
31/12/2005 13:09:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01082255
Message ID:
01082281
Vues:
10
>Hi
>
>I worked out that you have to implicitly use @LockOwner = 'Session', or you have to encapsulate the entire sp_getapplock/sp_releaseapplock code within a transaction. Typically, this requirement is not mentioned in any of Microsoft's SQL help files, I found this out via a search on the internet.
>
>Regards

on BOL
[@LockOwner =] 'lock_owner'

Is the lock owner. lock_owner is nvarchar(32) and can be Transaction (the default), 
or Session. When the lock_owner value is the default, 
or when Transaction is specified explicitly, sp_getapplock must be executed from within a transaction.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_sp_ga-gz_5gh5.asp
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform