Results 1 to 11 of 11

Thread: SQL Server Alert System: error 1205

  1. #1
    Join Date
    Mar 2003
    Location
    Brighton, UK
    Posts
    8

    Question SQL Server Alert System: error 1205

    I'm trying to set up a SQL Alert to notify me when deadlocks are experienced on our servers.

    I've set one up on a SQL2000 instance which works fine; when I generate a deadlock, the alert registers the occurance of the error and fires off an email.

    I've set up the same alert on a SQL7 instance which does not register the occurance of the error nor sends the notification email.

    Both alerts are identical, as are the scripts i'm using to generate a deadlock.

    Any help in diagnosing this problem would be very much appreciated.

    Thanks.
    Last edited by deeman; 03-25-2003 at 11:52 AM.

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Have you setup the trace flag 3604 to trap deadlock messages?

  3. #3
    Join Date
    Mar 2003
    Location
    Brighton, UK
    Posts
    8
    Yes, ran:

    DBCC TRACEON (3604)

    The alert still does not register an occurance of the error.

  4. #4
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    With DBCC TRACEON(3604) it traces for that particular connection, you have to enable it for all connections using

    DBCC TRACEON(3604,-1)

  5. #5
    Join Date
    Mar 2003
    Location
    Brighton, UK
    Posts
    8
    Still no joy. The deadlock error is not being written to the SQL Error Log nor NT Log.

    We've discovered that another SQL7 instance we have does write to the log and increment the alert count when a deadlock occurs.

  6. #6
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Try enabling

    DBCC TRACEON(3605,-1)

    too.

  7. #7
    Join Date
    Mar 2003
    Location
    Brighton, UK
    Posts
    8
    No luck. Does running the DBCC commands effectively 'turn on' error logging...?

  8. #8
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    When you run

    DBCC TRACESTATUS(-1)

    do you see 3604 and 3605 enabled?

  9. #9
    Join Date
    Mar 2003
    Location
    Brighton, UK
    Posts
    8
    Yes, status is set to 1.

  10. #10
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Ok. Let's try enabling 1204 and 1205 also using

    DBCC TRACEON(1204,-1)
    DBCC TRACEON(1205,-1)

  11. #11
    Join Date
    Mar 2003
    Location
    Brighton, UK
    Posts
    8
    TraceFlag Status
    ----------- -----------
    1204 1
    1205 1
    3604 1
    3605 1

    The error is still not being logged.

Posting Permissions

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