Results 1 to 6 of 6

Thread: Cannot view Current Activity in EM

  1. #1
    Join Date
    Nov 2002
    Posts
    3

    Unhappy Cannot view Current Activity in EM

    Trying to view current activity in EM however get error 1222 Lock request time out period exceeded, this also occurs when trying to view tempdb database.

    Is this a EM Gui error or locking issue and hwo do you resolve?

    Thanks

    GaryW

  2. #2
    Join Date
    Sep 2002
    Location
    DALLAS
    Posts
    25
    See if any other process is causing a block or a deadlock. To see this, while EM is clocking, logon to QA and run sp_who.

  3. #3
    Join Date
    Nov 2002
    Posts
    3
    In the sql returned how do you determine wether its locked ?

    Surely the current actiivty window is teh Gui way of doing sp_who?

    Thanks

  4. #4
    Join Date
    Sep 2002
    Location
    DALLAS
    Posts
    25
    The column BLK in the output of SP_WHO is defaulted to 0. If blocking is detected, the row for the blocked SPID (victim) contains the SPID of the blocker (culprit) in the BLK column.

    EM does more than SP_WHO; more like SP_WHO2 which requires the use of temp_db database. Also, EM is much known to the use of cursor based operations which may cause/effect blocking.

  5. #5
    Join Date
    Nov 2002
    Posts
    3
    Many thanks you are indeed the wizkid, can I jsut kill the culprit.

  6. #6
    Join Date
    Sep 2002
    Location
    DALLAS
    Posts
    25
    It's upto you.
    If you have found the culprit SPID, you might want to do the following.

    run : SELECT last_batch, * from master.dbo.sysprocesses (nolock) where spid = <<CULPRIT SPID>>
    to see how long has this process been running and other details like user-id, workstation/host name etc.,.

    run : DBCC INPUTBUFFER(<<CULPRIT SPID>>) to see what command is being run.

    if it is OK to kill; KILL

    HTH.,.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •