dbTalk Databases Forums  

Table Locks

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Table Locks in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Joe
 
Posts: n/a

Default Table Locks - 02-09-2004 , 06:04 PM






Anyone know the equiv Microsoft command that does table locking such as below?
This code snippet is from Sybase and I need to convert it to Microsoft SQL2k - SP3.

/* Lock the tables that will be transferred TO DW.
* The locks will be removed when this stored procedure
* is exited. "mode wait" means wait patiently
* until the table can be locked. */

lock table CPLACT in exclusive mode wait
lock table CPLSUP in exclusive mode wait
lock table CNSACT in exclusive mode wait
lock table CNSSUP in exclusive mode wait

--
___________________________
Joe Horton
Database Developer / Software Engineer
WISHA/Legal Services Software Development
Department of Labor and Industries
Voice (360) 902-5928 fax (360) 902-6200



Reply With Quote
  #2  
Old   
Olu Adedeji
 
Posts: n/a

Default RE: Table Locks - 02-10-2004 , 03:26 AM






use tablockx for exclusive table lock

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.