Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sp_getapplock syntax
Message
From
31/12/2005 10:03:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Sp_getapplock syntax
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01082255
Message ID:
01082255
Views:
75
Hi

I'm using the following code in my SQL procedure:

exec @lnLock = sp_getapplock @Resource = 'MyResource', @LockMode ='Shared'
return @lnLock

@lnLock always returns -999, which suggests a syntax error. However, if I removed the @lockmode part, the statement doesn't error. Any ideas?

Regards
Next
Reply
Map
View

Click here to load this message in the networking platform