Database Server Locked

  • When I try to remotely come into the server and view current activity or view possible locking, I get a time out error 1222. Any one know what this is and how I can get out of it?

    Thanks


    Aurora

  • You have lot more locks than the server can handle.

    Start SQL Query Analyzer, run a query that gives you the list of processes locking each other and kill the one causing grief.

    A sample query is as follows:

    USE MASTER

    GO

    SELECT * FROM SYSPROCESSES WHERE SPID IN

    (SELECT SPID FROM SYSLOCKS) ORDER BY BLOCKED DESC, SPID

    and use:

    KILL <SPID>

    to kill the process blocking others.

Viewing 2 posts - 1 through 1 (of 1 total)

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