Disable Or Drop Indexes

  • 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

  • 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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • How I find whos are using this table

    Thanks in Advance.

    Regards,

    Naseer Ahmed

  • 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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply