July 10, 2012 at 4:13 am
When ever I tired to drop or disable indexes on Table I got the following error.
Disable Failed For Index
Additional Information:
---> An exception occured while executing a Transact-SQL statement or batch.
---> Lock Request Time out period exceeded. (Microsoft SQL Server , Error:1222)
I tried through scripts and GUI but luck not work even I extend the lock request time out also but didnt get any solution.
Thanks in Advance.
Regards,
Naseer Ahmed
July 10, 2012 at 4:15 am
Wait until no one is using the table.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 10, 2012 at 4:22 am
How I find whos are using this table
Thanks in Advance.
Regards,
Naseer Ahmed
July 10, 2012 at 4:24 am
You can check sys.dm_exec_requests, see what's blocking the drop. You can check sys.dm_tran_locks for details.
There are some investigative scripts in chapter 6 of http://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply