Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 19-05-2011, 05:38 PM   #1 (permalink)
Alpha Geek
 
choudang's Avatar
 
Join Date: Sep 2005
Location: Guwahati
Posts: 812
Default urgent - SQL 2008 - Table lock


hi,

need some info on SQL 2008. one of my x-colig asked me on this scenario, i said with Tablock but i am not too confident on that, AFAIK, we have to apply trigger to prevent table drop.

case: Org has two databases as DB1 and DB2, for accessing every user has to authenticate themselves. as 2008 sql has GUI, DB2 users can delete any table from the tree, db rights are same for DB2 users. my frnd want to apply a lock to a certain table, so that table can't be dropped by other user.

Select * from Table_Name with TABLOCKX

this is not working, suggestions pl.
__________________
For every action, there is an equal and opposite criticism.
choudang is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:28 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2