Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ACESS LOCK

Status
Not open for further replies.

toddmartin

Programmer
Joined
Jul 24, 2003
Messages
2
Location
US
All,

LOCKING MODIFIER ACCESS will restrict the users to DROP the table ?

Todd
 
Why don't you try it yourself?

As you need an exclusive lock to drop a table, an access lock prevents drop or alter table.

Dieter
 
Let me explain in detail, one macro is access a table thru a view ,and view has been defined with LOCKING ACCESS , at the same time the other user who has permission to DROP the Table is trying to DROP this table , but he couldn't do it because there is a ACCESS LOCK granted on this table for the first user .

So access lock will not allow to drop the table . If this the case i need to take excluse lock on table and then DROP

Can you help me out to understand when there is a ACCESS LOCK , why other user cannot drop the table
 
Just think about the consequences when you drop a table while another process is reading data from it ;-)

Dieter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top