Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table exclusive used.
Message
From
05/07/2000 08:48:06
 
 
To
04/07/2000 21:32:41
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00388196
Message ID:
00388275
Views:
10
Aston,

It is possible to get an exclusive lock on a table. You can use the TABLOCKX hint within a transaction. The lock will be held for the length of the transaction.

BEGIN TRANSACTION
SELECT * FROM table WITH (TABLOCKX)
...
COMMIT TRANSACTION

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform