Showing posts with label alert. Show all posts
Showing posts with label alert. Show all posts

Thursday, March 29, 2012

Deadlocks increasing

I have setup a SQL alert that email's me if deadlocks occur. I recently
started getting flooded with alot of emails(see below) with deadlocks. The
current value does not drop back down, it remains at 4 until I restart the
SQL server. This has happened once in the past before, about 3 weeks ago.
We fixed it by restarting the server. I have DBCC OPENTRAN on all databases
and there are no active transaction open. Perfmon shows that I have 0
deadlocks but still I get these emails. Turning trace 1204 also shows me 0
deadlocks occurring. Can someone help me.
Tim
DATE/TIME: 10/13/2004 10:24:02 AM
DESCRIPTION: The SQL Server performance counter 'Number of Deadlocks/sec'
(instance '_Total') of object 'MSSQL$INST01:Locks' is now above the
threshold of 3.00 (the current value is 4.00).
COMMENT: (None)
JOB RUN: (None)
More information to supply:
"Tim" <Tim@.NOSpam.com> wrote in message
news:#0H6MnTsEHA.1216@.TK2MSFTNGP10.phx.gbl...
> I have setup a SQL alert that email's me if deadlocks occur. I recently
> started getting flooded with alot of emails(see below) with deadlocks.
The
> current value does not drop back down, it remains at 4 until I restart the
> SQL server. This has happened once in the past before, about 3 weeks ago.
> We fixed it by restarting the server. I have DBCC OPENTRAN on all
databases
> and there are no active transaction open. Perfmon shows that I have 0
> deadlocks but still I get these emails. Turning trace 1204 also shows me
0
> deadlocks occurring. Can someone help me.
> Tim
> ----
--
> --
> DATE/TIME: 10/13/2004 10:24:02 AM
> DESCRIPTION: The SQL Server performance counter 'Number of Deadlocks/sec'
> (instance '_Total') of object 'MSSQL$INST01:Locks' is now above the
> threshold of 3.00 (the current value is 4.00).
> COMMENT: (None)
> JOB RUN: (None)
>
|||More information:
select * from sysperfinfo where counter_name = 'Number of Deadlocks/sec'
object_name counter_name instance_name cntr_value cntr_type
MSSQL$INST01:Locks Number of Deadlocks/sec Extent 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Key 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Page 4 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Table 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec RID 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Database 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec _Total 4 272696320
I have 4 page deadlocks that will not release or reset. SP_LOCK shows no
current page locks.
Tim
"Tim" <Tim@.NOSpam.com> wrote in message
news:#0H6MnTsEHA.1216@.TK2MSFTNGP10.phx.gbl...
> I have setup a SQL alert that email's me if deadlocks occur. I recently
> started getting flooded with alot of emails(see below) with deadlocks.
The
> current value does not drop back down, it remains at 4 until I restart the
> SQL server. This has happened once in the past before, about 3 weeks ago.
> We fixed it by restarting the server. I have DBCC OPENTRAN on all
databases
> and there are no active transaction open. Perfmon shows that I have 0
> deadlocks but still I get these emails. Turning trace 1204 also shows me
0
> deadlocks occurring. Can someone help me.
> Tim
> ----
--
> --
> DATE/TIME: 10/13/2004 10:24:02 AM
> DESCRIPTION: The SQL Server performance counter 'Number of Deadlocks/sec'
> (instance '_Total') of object 'MSSQL$INST01:Locks' is now above the
> threshold of 3.00 (the current value is 4.00).
> COMMENT: (None)
> JOB RUN: (None)
>
|||Hi Tim,
To troubleshoot this issue, there would be several other things to try and
to check. However, as this is an issue that happens randomly, we may spend
extensive time to narrow it down since random issues are always hard to
troubleshoot. I would like to recommend that you contact Microsoft Product
Support Services and open a support incident and work with a dedicated
Support Professional.
Please be advised that contacting phone support will be a charged call.
However, if you are simply requesting a hotfix be sent to you and no other
support then charges are usually refunded or waived.
For a complete list of Microsoft Product Support Services phone numbers,
please go to the following address on the World Wide Web:
http://support.microsoft.com/directory/overview.asp
For now, from your descriptions, I understood that something were blocked
more frequently than you had exptected. Have I understood you? Correct me
if I was wrong.
Based on my scope, you'd better follow the instrunctions in KB below to
collect more information and what cause the block. Blocking could becaused
by various factors
INF: Understanding and Resolving SQL Server 7.0 or 2000 Blocking Problems
http://support.microsoft.com/kb/224453/en-us
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Mingqing Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
Introduction to Yukon! - http://www.microsoft.com/sql/yukon
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!

Deadlocks increasing

I have setup a SQL alert that email's me if deadlocks occur. I recently
started getting flooded with alot of emails(see below) with deadlocks. The
current value does not drop back down, it remains at 4 until I restart the
SQL server. This has happened once in the past before, about 3 weeks ago.
We fixed it by restarting the server. I have DBCC OPENTRAN on all databases
and there are no active transaction open. Perfmon shows that I have 0
deadlocks but still I get these emails. Turning trace 1204 also shows me 0
deadlocks occurring. Can someone help me.
Tim
----
--
DATE/TIME: 10/13/2004 10:24:02 AM
DESCRIPTION: The SQL Server performance counter 'Number of Deadlocks/sec'
(instance '_Total') of object 'MSSQL$INST01:Locks' is now above the
threshold of 3.00 (the current value is 4.00).
COMMENT: (None)
JOB RUN: (None)More information to supply:
"Tim" <Tim@.NOSpam.com> wrote in message
news:#0H6MnTsEHA.1216@.TK2MSFTNGP10.phx.gbl...
> I have setup a SQL alert that email's me if deadlocks occur. I recently
> started getting flooded with alot of emails(see below) with deadlocks.
The
> current value does not drop back down, it remains at 4 until I restart the
> SQL server. This has happened once in the past before, about 3 weeks ago.
> We fixed it by restarting the server. I have DBCC OPENTRAN on all
databases
> and there are no active transaction open. Perfmon shows that I have 0
> deadlocks but still I get these emails. Turning trace 1204 also shows me
0
> deadlocks occurring. Can someone help me.
> Tim
> ----
--
> --
> DATE/TIME: 10/13/2004 10:24:02 AM
> DESCRIPTION: The SQL Server performance counter 'Number of Deadlocks/sec'
> (instance '_Total') of object 'MSSQL$INST01:Locks' is now above the
> threshold of 3.00 (the current value is 4.00).
> COMMENT: (None)
> JOB RUN: (None)
>|||More information:
select * from sysperfinfo where counter_name = 'Number of Deadlocks/sec'
object_name counter_name instance_name cntr_value cntr_type
MSSQL$INST01:Locks Number of Deadlocks/sec Extent 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Key 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Page 4 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Table 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec RID 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Database 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec _Total 4 272696320
I have 4 page deadlocks that will not release or reset. SP_LOCK shows no
current page locks.
Tim
"Tim" <Tim@.NOSpam.com> wrote in message
news:#0H6MnTsEHA.1216@.TK2MSFTNGP10.phx.gbl...
> I have setup a SQL alert that email's me if deadlocks occur. I recently
> started getting flooded with alot of emails(see below) with deadlocks.
The
> current value does not drop back down, it remains at 4 until I restart the
> SQL server. This has happened once in the past before, about 3 weeks ago.
> We fixed it by restarting the server. I have DBCC OPENTRAN on all
databases
> and there are no active transaction open. Perfmon shows that I have 0
> deadlocks but still I get these emails. Turning trace 1204 also shows me
0
> deadlocks occurring. Can someone help me.
> Tim
> ----
--
> --
> DATE/TIME: 10/13/2004 10:24:02 AM
> DESCRIPTION: The SQL Server performance counter 'Number of Deadlocks/sec'
> (instance '_Total') of object 'MSSQL$INST01:Locks' is now above the
> threshold of 3.00 (the current value is 4.00).
> COMMENT: (None)
> JOB RUN: (None)
>|||Hi Tim,
To troubleshoot this issue, there would be several other things to try and
to check. However, as this is an issue that happens randomly, we may spend
extensive time to narrow it down since random issues are always hard to
troubleshoot. I would like to recommend that you contact Microsoft Product
Support Services and open a support incident and work with a dedicated
Support Professional.
Please be advised that contacting phone support will be a charged call.
However, if you are simply requesting a hotfix be sent to you and no other
support then charges are usually refunded or waived.
For a complete list of Microsoft Product Support Services phone numbers,
please go to the following address on the World Wide Web:
http://support.microsoft.com/directory/overview.asp
For now, from your descriptions, I understood that something were blocked
more frequently than you had exptected. Have I understood you? Correct me
if I was wrong.
Based on my scope, you'd better follow the instrunctions in KB below to
collect more information and what cause the block. Blocking could becaused
by various factors
INF: Understanding and Resolving SQL Server 7.0 or 2000 Blocking Problems
http://support.microsoft.com/kb/224453/en-us
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Mingqing Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Introduction to Yukon! - http://www.microsoft.com/sql/yukon
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!sql

Deadlocks increasing

I have setup a SQL alert that email's me if deadlocks occur. I recently
started getting flooded with alot of emails(see below) with deadlocks. The
current value does not drop back down, it remains at 4 until I restart the
SQL server. This has happened once in the past before, about 3 weeks ago.
We fixed it by restarting the server. I have DBCC OPENTRAN on all databases
and there are no active transaction open. Perfmon shows that I have 0
deadlocks but still I get these emails. Turning trace 1204 also shows me 0
deadlocks occurring. Can someone help me.
Tim
----
--
DATE/TIME: 10/13/2004 10:24:02 AM
DESCRIPTION: The SQL Server performance counter 'Number of Deadlocks/sec'
(instance '_Total') of object 'MSSQL$INST01:Locks' is now above the
threshold of 3.00 (the current value is 4.00).
COMMENT: (None)
JOB RUN: (None)More information to supply:
"Tim" <Tim@.NOSpam.com> wrote in message
news:#0H6MnTsEHA.1216@.TK2MSFTNGP10.phx.gbl...
> I have setup a SQL alert that email's me if deadlocks occur. I recently
> started getting flooded with alot of emails(see below) with deadlocks.
The
> current value does not drop back down, it remains at 4 until I restart the
> SQL server. This has happened once in the past before, about 3 weeks ago.
> We fixed it by restarting the server. I have DBCC OPENTRAN on all
databases
> and there are no active transaction open. Perfmon shows that I have 0
> deadlocks but still I get these emails. Turning trace 1204 also shows me
0
> deadlocks occurring. Can someone help me.
> Tim
> ----
--
> --
> DATE/TIME: 10/13/2004 10:24:02 AM
> DESCRIPTION: The SQL Server performance counter 'Number of Deadlocks/sec'
> (instance '_Total') of object 'MSSQL$INST01:Locks' is now above the
> threshold of 3.00 (the current value is 4.00).
> COMMENT: (None)
> JOB RUN: (None)
>|||More information:
select * from sysperfinfo where counter_name = 'Number of Deadlocks/sec'
object_name counter_name instance_name cntr_value cntr_type
MSSQL$INST01:Locks Number of Deadlocks/sec Extent 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Key 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Page 4 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Table 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec RID 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec Database 0 272696320
MSSQL$INST01:Locks Number of Deadlocks/sec _Total 4 272696320
I have 4 page deadlocks that will not release or reset. SP_LOCK shows no
current page locks.
Tim
"Tim" <Tim@.NOSpam.com> wrote in message
news:#0H6MnTsEHA.1216@.TK2MSFTNGP10.phx.gbl...
> I have setup a SQL alert that email's me if deadlocks occur. I recently
> started getting flooded with alot of emails(see below) with deadlocks.
The
> current value does not drop back down, it remains at 4 until I restart the
> SQL server. This has happened once in the past before, about 3 weeks ago.
> We fixed it by restarting the server. I have DBCC OPENTRAN on all
databases
> and there are no active transaction open. Perfmon shows that I have 0
> deadlocks but still I get these emails. Turning trace 1204 also shows me
0
> deadlocks occurring. Can someone help me.
> Tim
> ----
--
> --
> DATE/TIME: 10/13/2004 10:24:02 AM
> DESCRIPTION: The SQL Server performance counter 'Number of Deadlocks/sec'
> (instance '_Total') of object 'MSSQL$INST01:Locks' is now above the
> threshold of 3.00 (the current value is 4.00).
> COMMENT: (None)
> JOB RUN: (None)
>|||Hi Tim,
To troubleshoot this issue, there would be several other things to try and
to check. However, as this is an issue that happens randomly, we may spend
extensive time to narrow it down since random issues are always hard to
troubleshoot. I would like to recommend that you contact Microsoft Product
Support Services and open a support incident and work with a dedicated
Support Professional.
Please be advised that contacting phone support will be a charged call.
However, if you are simply requesting a hotfix be sent to you and no other
support then charges are usually refunded or waived.
For a complete list of Microsoft Product Support Services phone numbers,
please go to the following address on the World Wide Web:
http://support.microsoft.com/directory/overview.asp
For now, from your descriptions, I understood that something were blocked
more frequently than you had exptected. Have I understood you? Correct me
if I was wrong.
Based on my scope, you'd better follow the instrunctions in KB below to
collect more information and what cause the block. Blocking could becaused
by various factors
INF: Understanding and Resolving SQL Server 7.0 or 2000 Blocking Problems
http://support.microsoft.com/kb/224453/en-us
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Mingqing Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Introduction to Yukon! - http://www.microsoft.com/sql/yukon
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!

Sunday, March 11, 2012

Deadlock alert (message ID 1205) no longer able to be logged in 2005

Hi all,

In SQL Server 2000 you could run the piece of code below, to enable the logging of a deadlock in the SQL Server error log. Which could then be used to fire an alert, and then kick of an Agent job to send an SMTP email alert.

Exec sp_altermessage 1205, 'WITH_LOG', 'true'

The error message logged was a nice simple one liner, like this:

Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Now I work for a managed SQL Server company, and a large number of our clients used our alerting for deadlocking to tune their applications, or at a minimum to show them when something was wrong with the database due to sudden rise in the number of deadlocks.

However, in SQL Server 2005, the functionality for the sp_alertmessage procedure has been changed so that you can't update any message id less than 50,000. Which comes inline with the secure engine that Microsoft have designed.

But this now means you can no longer enable the logging for deadlock message ID 1205. Which in turn means no alerting can be enabled.

You can still log information by enabling the necessary trace flags, however that logs very verbose information about the deadlocking chain, which in turn can quickly blow the size of the error logs out.

What I would love to see is this functionality returned in SQL Server 2008, or at least an alternative so that only minimum information is logged initially for a deadlock, and alerting can be setup.

Also, for those of you who have read through the 2005 BOL, about deadlocking, although it states the following in the section on deadlocking:

"...The 1205 deadlock victim error records information about the threads and resources involved in a deadlock in the error log.”

This isn't the case, unless you enable some trace flags, which as mentioned will give you a whole lot of information, which although is valuable, isn't ideal if you're wanting day to day deadlock tracking.

Does anyone have any thoughts on this? Have you struck this as well? Do you think this should be something that shouldn't have been removed from 2000?

Cheers,

Reece.

Does anyone have any info or opinions on this?

Cheers,

Reece.

|||

We experienced the same frustration for deadlocks, primary key violations, login failures and permission denied. These alerts are needed on several of our SQL 2000 servers, but can no longer be implemented on SQL 2005. We find this very frustrating and do not understand the logic behind the decision to remove this functionality.

Dave

|||

completely agree with you and I can't understand why this is so. I did try via the dedicated admin connection but still couldn't appear to get around this. I used to set alerts on various errors in sql 2000 for all types of errors as part of debugging production software releases and such. Not needed to do this for last couple of years but now want to do this with sql 2005 and I can't. What a pain!

|||I beleive you can use DBcc traceon to capture the details of deadlock victims details .

DBCC TRACEON

Trace flag 1204

This trace flag returns the type of locks participating in a deadlock and the current command affected.

Trace flag 1205

This trace flag returns more detailed information about the command being executed at the time of a deadlock.

|||

Yes I know about and use the trace flags - but what I really wanted was an alert on the deadlock so I could grab a snapshot of all actiivty, and know when the deadlock occurred without trawling the error log.

|||

I'm glad I'm not the only one experiencing this frustrating change in functionality.

I have also listed this on the BETA site for 2008, as something that should be added back into the engine. But as yet I haven't had any feedback from Microsoft on whether it's going to make it on the to-do list or not.

We've also tried the trace flags, but I agree with colin, all we want is an alert that a deadlock has occurred, without the verbose logging that the trace flags bring with them.

Cheers.

Deadlock alert (message ID 1205) no longer able to be logged in 2005

Hi all,

In SQL Server 2000 you could run the piece of code below, to enable the logging of a deadlock in the SQL Server error log. Which could then be used to fire an alert, and then kick of an Agent job to send an SMTP email alert.

Exec sp_altermessage 1205, 'WITH_LOG', 'true'

The error message logged was a nice simple one liner, like this:

Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Now I work for a managed SQL Server company, and a large number of our clients used our alerting for deadlocking to tune their applications, or at a minimum to show them when something was wrong with the database due to sudden rise in the number of deadlocks.

However, in SQL Server 2005, the functionality for the sp_alertmessage procedure has been changed so that you can't update any message id less than 50,000. Which comes inline with the secure engine that Microsoft have designed.

But this now means you can no longer enable the logging for deadlock message ID 1205. Which in turn means no alerting can be enabled.

You can still log information by enabling the necessary trace flags, however that logs very verbose information about the deadlocking chain, which in turn can quickly blow the size of the error logs out.

What I would love to see is this functionality returned in SQL Server 2008, or at least an alternative so that only minimum information is logged initially for a deadlock, and alerting can be setup.

Also, for those of you who have read through the 2005 BOL, about deadlocking, although it states the following in the section on deadlocking:

"...The 1205 deadlock victim error records information about the threads and resources involved in a deadlock in the error log.”

This isn't the case, unless you enable some trace flags, which as mentioned will give you a whole lot of information, which although is valuable, isn't ideal if you're wanting day to day deadlock tracking.

Does anyone have any thoughts on this? Have you struck this as well? Do you think this should be something that shouldn't have been removed from 2000?

Cheers,

Reece.

Does anyone have any info or opinions on this?

Cheers,

Reece.

|||

We experienced the same frustration for deadlocks, primary key violations, login failures and permission denied. These alerts are needed on several of our SQL 2000 servers, but can no longer be implemented on SQL 2005. We find this very frustrating and do not understand the logic behind the decision to remove this functionality.

Dave

|||

completely agree with you and I can't understand why this is so. I did try via the dedicated admin connection but still couldn't appear to get around this. I used to set alerts on various errors in sql 2000 for all types of errors as part of debugging production software releases and such. Not needed to do this for last couple of years but now want to do this with sql 2005 and I can't. What a pain!

|||I beleive you can use DBcc traceon to capture the details of deadlock victims details .

DBCC TRACEON

Trace flag 1204

This trace flag returns the type of locks participating in a deadlock and the current command affected.

Trace flag 1205

This trace flag returns more detailed information about the command being executed at the time of a deadlock.

|||

Yes I know about and use the trace flags - but what I really wanted was an alert on the deadlock so I could grab a snapshot of all actiivty, and know when the deadlock occurred without trawling the error log.

|||

I'm glad I'm not the only one experiencing this frustrating change in functionality.

I have also listed this on the BETA site for 2008, as something that should be added back into the engine. But as yet I haven't had any feedback from Microsoft on whether it's going to make it on the to-do list or not.

We've also tried the trace flags, but I agree with colin, all we want is an alert that a deadlock has occurred, without the verbose logging that the trace flags bring with them.

Cheers.

Deadlock alert (message ID 1205) no longer able to be logged in 2005

Hi all,

In SQL Server 2000 you could run the piece of code below, to enable the logging of a deadlock in the SQL Server error log. Which could then be used to fire an alert, and then kick of an Agent job to send an SMTP email alert.

Exec sp_altermessage 1205, 'WITH_LOG', 'true'

The error message logged was a nice simple one liner, like this:

Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Now I work for a managed SQL Server company, and a large number of our clients used our alerting for deadlocking to tune their applications, or at a minimum to show them when something was wrong with the database due to sudden rise in the number of deadlocks.

However, in SQL Server 2005, the functionality for the sp_alertmessage procedure has been changed so that you can't update any message id less than 50,000. Which comes inline with the secure engine that Microsoft have designed.

But this now means you can no longer enable the logging for deadlock message ID 1205. Which in turn means no alerting can be enabled.

You can still log information by enabling the necessary trace flags, however that logs very verbose information about the deadlocking chain, which in turn can quickly blow the size of the error logs out.

What I would love to see is this functionality returned in SQL Server 2008, or at least an alternative so that only minimum information is logged initially for a deadlock, and alerting can be setup.

Also, for those of you who have read through the 2005 BOL, about deadlocking, although it states the following in the section on deadlocking:

"...The 1205 deadlock victim error records information about the threads and resources involved in a deadlock in the error log.”

This isn't the case, unless you enable some trace flags, which as mentioned will give you a whole lot of information, which although is valuable, isn't ideal if you're wanting day to day deadlock tracking.

Does anyone have any thoughts on this? Have you struck this as well? Do you think this should be something that shouldn't have been removed from 2000?

Cheers,

Reece.

Does anyone have any info or opinions on this?

Cheers,

Reece.

|||

We experienced the same frustration for deadlocks, primary key violations, login failures and permission denied. These alerts are needed on several of our SQL 2000 servers, but can no longer be implemented on SQL 2005. We find this very frustrating and do not understand the logic behind the decision to remove this functionality.

Dave

|||

completely agree with you and I can't understand why this is so. I did try via the dedicated admin connection but still couldn't appear to get around this. I used to set alerts on various errors in sql 2000 for all types of errors as part of debugging production software releases and such. Not needed to do this for last couple of years but now want to do this with sql 2005 and I can't. What a pain!

|||I beleive you can use DBcc traceon to capture the details of deadlock victims details .

DBCC TRACEON

Trace flag 1204

This trace flag returns the type of locks participating in a deadlock and the current command affected.

Trace flag 1205

This trace flag returns more detailed information about the command being executed at the time of a deadlock.

|||

Yes I know about and use the trace flags - but what I really wanted was an alert on the deadlock so I could grab a snapshot of all actiivty, and know when the deadlock occurred without trawling the error log.

|||

I'm glad I'm not the only one experiencing this frustrating change in functionality.

I have also listed this on the BETA site for 2008, as something that should be added back into the engine. But as yet I haven't had any feedback from Microsoft on whether it's going to make it on the to-do list or not.

We've also tried the trace flags, but I agree with colin, all we want is an alert that a deadlock has occurred, without the verbose logging that the trace flags bring with them.

Cheers.

Deadlock alert (message ID 1205) no longer able to be logged in 2005

Hi all,

In SQL Server 2000 you could run the piece of code below, to enable the logging of a deadlock in the SQL Server error log. Which could then be used to fire an alert, and then kick of an Agent job to send an SMTP email alert.

Exec sp_altermessage 1205, 'WITH_LOG', 'true'

The error message logged was a nice simple one liner, like this:

Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Now I work for a managed SQL Server company, and a large number of our clients used our alerting for deadlocking to tune their applications, or at a minimum to show them when something was wrong with the database due to sudden rise in the number of deadlocks.

However, in SQL Server 2005, the functionality for the sp_alertmessage procedure has been changed so that you can't update any message id less than 50,000. Which comes inline with the secure engine that Microsoft have designed.

But this now means you can no longer enable the logging for deadlock message ID 1205. Which in turn means no alerting can be enabled.

You can still log information by enabling the necessary trace flags, however that logs very verbose information about the deadlocking chain, which in turn can quickly blow the size of the error logs out.

What I would love to see is this functionality returned in SQL Server 2008, or at least an alternative so that only minimum information is logged initially for a deadlock, and alerting can be setup.

Also, for those of you who have read through the 2005 BOL, about deadlocking, although it states the following in the section on deadlocking:

"...The 1205 deadlock victim error records information about the threads and resources involved in a deadlock in the error log.”

This isn't the case, unless you enable some trace flags, which as mentioned will give you a whole lot of information, which although is valuable, isn't ideal if you're wanting day to day deadlock tracking.

Does anyone have any thoughts on this? Have you struck this as well? Do you think this should be something that shouldn't have been removed from 2000?

Cheers,

Reece.

Does anyone have any info or opinions on this?

Cheers,

Reece.

|||

We experienced the same frustration for deadlocks, primary key violations, login failures and permission denied. These alerts are needed on several of our SQL 2000 servers, but can no longer be implemented on SQL 2005. We find this very frustrating and do not understand the logic behind the decision to remove this functionality.

Dave

|||

completely agree with you and I can't understand why this is so. I did try via the dedicated admin connection but still couldn't appear to get around this. I used to set alerts on various errors in sql 2000 for all types of errors as part of debugging production software releases and such. Not needed to do this for last couple of years but now want to do this with sql 2005 and I can't. What a pain!

|||I beleive you can use DBcc traceon to capture the details of deadlock victims details .

DBCC TRACEON

Trace flag 1204

This trace flag returns the type of locks participating in a deadlock and the current command affected.

Trace flag 1205

This trace flag returns more detailed information about the command being executed at the time of a deadlock.

|||

Yes I know about and use the trace flags - but what I really wanted was an alert on the deadlock so I could grab a snapshot of all actiivty, and know when the deadlock occurred without trawling the error log.

|||

I'm glad I'm not the only one experiencing this frustrating change in functionality.

I have also listed this on the BETA site for 2008, as something that should be added back into the engine. But as yet I haven't had any feedback from Microsoft on whether it's going to make it on the to-do list or not.

We've also tried the trace flags, but I agree with colin, all we want is an alert that a deadlock has occurred, without the verbose logging that the trace flags bring with them.

Cheers.

Deadlock alert (message ID 1205) no longer able to be logged in 2005

Hi all,

In SQL Server 2000 you could run the piece of code below, to enable the logging of a deadlock in the SQL Server error log. Which could then be used to fire an alert, and then kick of an Agent job to send an SMTP email alert.

Exec sp_altermessage 1205, 'WITH_LOG', 'true'

The error message logged was a nice simple one liner, like this:

Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Now I work for a managed SQL Server company, and a large number of our clients used our alerting for deadlocking to tune their applications, or at a minimum to show them when something was wrong with the database due to sudden rise in the number of deadlocks.

However, in SQL Server 2005, the functionality for the sp_alertmessage procedure has been changed so that you can't update any message id less than 50,000. Which comes inline with the secure engine that Microsoft have designed.

But this now means you can no longer enable the logging for deadlock message ID 1205. Which in turn means no alerting can be enabled.

You can still log information by enabling the necessary trace flags, however that logs very verbose information about the deadlocking chain, which in turn can quickly blow the size of the error logs out.

What I would love to see is this functionality returned in SQL Server 2008, or at least an alternative so that only minimum information is logged initially for a deadlock, and alerting can be setup.

Also, for those of you who have read through the 2005 BOL, about deadlocking, although it states the following in the section on deadlocking:

"...The 1205 deadlock victim error records information about the threads and resources involved in a deadlock in the error log.”

This isn't the case, unless you enable some trace flags, which as mentioned will give you a whole lot of information, which although is valuable, isn't ideal if you're wanting day to day deadlock tracking.

Does anyone have any thoughts on this? Have you struck this as well? Do you think this should be something that shouldn't have been removed from 2000?

Cheers,

Reece.

Does anyone have any info or opinions on this?

Cheers,

Reece.

|||

We experienced the same frustration for deadlocks, primary key violations, login failures and permission denied. These alerts are needed on several of our SQL 2000 servers, but can no longer be implemented on SQL 2005. We find this very frustrating and do not understand the logic behind the decision to remove this functionality.

Dave

|||

completely agree with you and I can't understand why this is so. I did try via the dedicated admin connection but still couldn't appear to get around this. I used to set alerts on various errors in sql 2000 for all types of errors as part of debugging production software releases and such. Not needed to do this for last couple of years but now want to do this with sql 2005 and I can't. What a pain!

|||I beleive you can use DBcc traceon to capture the details of deadlock victims details .

DBCC TRACEON

Trace flag 1204

This trace flag returns the type of locks participating in a deadlock and the current command affected.

Trace flag 1205

This trace flag returns more detailed information about the command being executed at the time of a deadlock.

|||

Yes I know about and use the trace flags - but what I really wanted was an alert on the deadlock so I could grab a snapshot of all actiivty, and know when the deadlock occurred without trawling the error log.

|||

I'm glad I'm not the only one experiencing this frustrating change in functionality.

I have also listed this on the BETA site for 2008, as something that should be added back into the engine. But as yet I haven't had any feedback from Microsoft on whether it's going to make it on the to-do list or not.

We've also tried the trace flags, but I agree with colin, all we want is an alert that a deadlock has occurred, without the verbose logging that the trace flags bring with them.

Cheers.

Deadlock alert (message ID 1205) no longer able to be logged in 2005

Hi all,

In SQL Server 2000 you could run the piece of code below, to enable the logging of a deadlock in the SQL Server error log. Which could then be used to fire an alert, and then kick of an Agent job to send an SMTP email alert.

Exec sp_altermessage 1205, 'WITH_LOG', 'true'

The error message logged was a nice simple one liner, like this:

Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Now I work for a managed SQL Server company, and a large number of our clients used our alerting for deadlocking to tune their applications, or at a minimum to show them when something was wrong with the database due to sudden rise in the number of deadlocks.

However, in SQL Server 2005, the functionality for the sp_alertmessage procedure has been changed so that you can't update any message id less than 50,000. Which comes inline with the secure engine that Microsoft have designed.

But this now means you can no longer enable the logging for deadlock message ID 1205. Which in turn means no alerting can be enabled.

You can still log information by enabling the necessary trace flags, however that logs very verbose information about the deadlocking chain, which in turn can quickly blow the size of the error logs out.

What I would love to see is this functionality returned in SQL Server 2008, or at least an alternative so that only minimum information is logged initially for a deadlock, and alerting can be setup.

Also, for those of you who have read through the 2005 BOL, about deadlocking, although it states the following in the section on deadlocking:

"...The 1205 deadlock victim error records information about the threads and resources involved in a deadlock in the error log.”

This isn't the case, unless you enable some trace flags, which as mentioned will give you a whole lot of information, which although is valuable, isn't ideal if you're wanting day to day deadlock tracking.

Does anyone have any thoughts on this? Have you struck this as well? Do you think this should be something that shouldn't have been removed from 2000?

Cheers,

Reece.

Does anyone have any info or opinions on this?

Cheers,

Reece.

|||

We experienced the same frustration for deadlocks, primary key violations, login failures and permission denied. These alerts are needed on several of our SQL 2000 servers, but can no longer be implemented on SQL 2005. We find this very frustrating and do not understand the logic behind the decision to remove this functionality.

Dave

|||

completely agree with you and I can't understand why this is so. I did try via the dedicated admin connection but still couldn't appear to get around this. I used to set alerts on various errors in sql 2000 for all types of errors as part of debugging production software releases and such. Not needed to do this for last couple of years but now want to do this with sql 2005 and I can't. What a pain!

|||I beleive you can use DBcc traceon to capture the details of deadlock victims details .

DBCC TRACEON

Trace flag 1204

This trace flag returns the type of locks participating in a deadlock and the current command affected.

Trace flag 1205

This trace flag returns more detailed information about the command being executed at the time of a deadlock.

|||

Yes I know about and use the trace flags - but what I really wanted was an alert on the deadlock so I could grab a snapshot of all actiivty, and know when the deadlock occurred without trawling the error log.

|||

I'm glad I'm not the only one experiencing this frustrating change in functionality.

I have also listed this on the BETA site for 2008, as something that should be added back into the engine. But as yet I haven't had any feedback from Microsoft on whether it's going to make it on the to-do list or not.

We've also tried the trace flags, but I agree with colin, all we want is an alert that a deadlock has occurred, without the verbose logging that the trace flags bring with them.

Cheers.

deadlock alert

sql2k sp3
I want to have an alert email me whenever a deadlock occurs. SQLMail is
working properly. I create an alert and specify Error 1205. Then I specify
myself in the email section. Then I purposely cause a deadlock but never get
emailed. In addition to this, the deadlock never goes in the TLog either. An
y
ideas?
TIA, ChrisRDid you select "Always write to Windows Eventlog" for error 1205?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"ChrisR" <ChrisR@.discussions.microsoft.com> wrote in message
news:01EDCE91-12E5-4DD6-9C13-C5CDA5BE3D20@.microsoft.com...
> sql2k sp3
> I want to have an alert email me whenever a deadlock occurs. SQLMail is
> working properly. I create an alert and specify Error 1205. Then I specify
> myself in the email section. Then I purposely cause a deadlock but never g
et
> emailed. In addition to this, the deadlock never goes in the TLog either.
Any
> ideas?
>
> TIA, ChrisR|||I don't see that as an option anywhere. Will this help my email/ TLog proble
m?
"Tibor Karaszi" wrote:

> Did you select "Always write to Windows Eventlog" for error 1205?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "ChrisR" <ChrisR@.discussions.microsoft.com> wrote in message
> news:01EDCE91-12E5-4DD6-9C13-C5CDA5BE3D20@.microsoft.com...
>
>|||Where would I check this at?
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:udq$65JsEHA.2212@.TK2MSFTNGP14.phx.gbl...
> Did you select "Always write to Windows Eventlog" for error 1205?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "ChrisR" <ChrisR@.discussions.microsoft.com> wrote in message
> news:01EDCE91-12E5-4DD6-9C13-C5CDA5BE3D20@.microsoft.com...
specify[vbcol=seagreen]
get[vbcol=seagreen]
either. Any[vbcol=seagreen]
>|||EM, right-click the server, Manage SQL Server Messages, search your message
in this dialog.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"ChrisR" <chris@.noemail.com> wrote in message news:%230t$w4MsEHA.3320@.TK2MSFTNGP15.phx.gbl..
.
> Where would I check this at?
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote i
n
> message news:udq$65JsEHA.2212@.TK2MSFTNGP14.phx.gbl...
> specify
> get
> either. Any
>

deadlock alert

sql2k sp3
I want to have an alert email me whenever a deadlock occurs. SQLMail is
working properly. I create an alert and specify Error 1205. Then I specify
myself in the email section. Then I purposely cause a deadlock but never get
emailed. In addition to this, the deadlock never goes in the TLog either. Any
ideas?
TIA, ChrisRDid you select "Always write to Windows Eventlog" for error 1205?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"ChrisR" <ChrisR@.discussions.microsoft.com> wrote in message
news:01EDCE91-12E5-4DD6-9C13-C5CDA5BE3D20@.microsoft.com...
> sql2k sp3
> I want to have an alert email me whenever a deadlock occurs. SQLMail is
> working properly. I create an alert and specify Error 1205. Then I specify
> myself in the email section. Then I purposely cause a deadlock but never get
> emailed. In addition to this, the deadlock never goes in the TLog either. Any
> ideas?
>
> TIA, ChrisR|||I don't see that as an option anywhere. Will this help my email/ TLog problem?
"Tibor Karaszi" wrote:
> Did you select "Always write to Windows Eventlog" for error 1205?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "ChrisR" <ChrisR@.discussions.microsoft.com> wrote in message
> news:01EDCE91-12E5-4DD6-9C13-C5CDA5BE3D20@.microsoft.com...
> > sql2k sp3
> >
> > I want to have an alert email me whenever a deadlock occurs. SQLMail is
> > working properly. I create an alert and specify Error 1205. Then I specify
> > myself in the email section. Then I purposely cause a deadlock but never get
> > emailed. In addition to this, the deadlock never goes in the TLog either. Any
> > ideas?
> >
> >
> > TIA, ChrisR
>
>|||Where would I check this at?
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:udq$65JsEHA.2212@.TK2MSFTNGP14.phx.gbl...
> Did you select "Always write to Windows Eventlog" for error 1205?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "ChrisR" <ChrisR@.discussions.microsoft.com> wrote in message
> news:01EDCE91-12E5-4DD6-9C13-C5CDA5BE3D20@.microsoft.com...
> > sql2k sp3
> >
> > I want to have an alert email me whenever a deadlock occurs. SQLMail is
> > working properly. I create an alert and specify Error 1205. Then I
specify
> > myself in the email section. Then I purposely cause a deadlock but never
get
> > emailed. In addition to this, the deadlock never goes in the TLog
either. Any
> > ideas?
> >
> >
> > TIA, ChrisR
>|||EM, right-click the server, Manage SQL Server Messages, search your message in this dialog.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"ChrisR" <chris@.noemail.com> wrote in message news:%230t$w4MsEHA.3320@.TK2MSFTNGP15.phx.gbl...
> Where would I check this at?
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:udq$65JsEHA.2212@.TK2MSFTNGP14.phx.gbl...
>> Did you select "Always write to Windows Eventlog" for error 1205?
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://www.solidqualitylearning.com/
>>
>> "ChrisR" <ChrisR@.discussions.microsoft.com> wrote in message
>> news:01EDCE91-12E5-4DD6-9C13-C5CDA5BE3D20@.microsoft.com...
>> > sql2k sp3
>> >
>> > I want to have an alert email me whenever a deadlock occurs. SQLMail is
>> > working properly. I create an alert and specify Error 1205. Then I
> specify
>> > myself in the email section. Then I purposely cause a deadlock but never
> get
>> > emailed. In addition to this, the deadlock never goes in the TLog
> either. Any
>> > ideas?
>> >
>> >
>> > TIA, ChrisR
>>
>

deadlock alert

sql2k sp3
I want to have an alert email me whenever a deadlock occurs. SQLMail is
working properly. I create an alert and specify Error 1205. Then I specify
myself in the email section. Then I purposely cause a deadlock but never get
emailed. In addition to this, the deadlock never goes in the TLog either. Any
ideas?
TIA, ChrisR
Did you select "Always write to Windows Eventlog" for error 1205?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"ChrisR" <ChrisR@.discussions.microsoft.com> wrote in message
news:01EDCE91-12E5-4DD6-9C13-C5CDA5BE3D20@.microsoft.com...
> sql2k sp3
> I want to have an alert email me whenever a deadlock occurs. SQLMail is
> working properly. I create an alert and specify Error 1205. Then I specify
> myself in the email section. Then I purposely cause a deadlock but never get
> emailed. In addition to this, the deadlock never goes in the TLog either. Any
> ideas?
>
> TIA, ChrisR
|||I don't see that as an option anywhere. Will this help my email/ TLog problem?
"Tibor Karaszi" wrote:

> Did you select "Always write to Windows Eventlog" for error 1205?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "ChrisR" <ChrisR@.discussions.microsoft.com> wrote in message
> news:01EDCE91-12E5-4DD6-9C13-C5CDA5BE3D20@.microsoft.com...
>
>
|||Where would I check this at?
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:udq$65JsEHA.2212@.TK2MSFTNGP14.phx.gbl...[vbcol=seagreen]
> Did you select "Always write to Windows Eventlog" for error 1205?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "ChrisR" <ChrisR@.discussions.microsoft.com> wrote in message
> news:01EDCE91-12E5-4DD6-9C13-C5CDA5BE3D20@.microsoft.com...
specify[vbcol=seagreen]
get[vbcol=seagreen]
either. Any
>
|||EM, right-click the server, Manage SQL Server Messages, search your message in this dialog.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"ChrisR" <chris@.noemail.com> wrote in message news:%230t$w4MsEHA.3320@.TK2MSFTNGP15.phx.gbl...
> Where would I check this at?
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:udq$65JsEHA.2212@.TK2MSFTNGP14.phx.gbl...
> specify
> get
> either. Any
>

Friday, February 17, 2012

DBMail used for job and alert emails

Can you use DBMail for job and alert emails without having to resort to usin
g
the DBMail stored procs? I have DBMail setup and the test email works fine
but when I run a job and expect to see a completion email send to a defined
operator no email occurs but neither does any error stating why the email wa
s
not sent. I have told SQLAgent to use DBMail and a specified account so I a
m
unsure what else I need to do.Any errors on the Database Mail Log? (Right-click Database Mail and select
View Database Mail Log).
Ben Nevarez, MCDBA, OCP
Database Administrator
"Jerry Boggess" wrote:

> Can you use DBMail for job and alert emails without having to resort to us
ing
> the DBMail stored procs? I have DBMail setup and the test email works fin
e
> but when I run a job and expect to see a completion email send to a define
d
> operator no email occurs but neither does any error stating why the email
was
> not sent. I have told SQLAgent to use DBMail and a specified account so I
am
> unsure what else I need to do.|||Database Mail alerts did not work for me until after applying SQL 2005 SP1.
"Jerry Boggess" <JerryBoggess@.discussions.microsoft.com> wrote in message
news:BF1A9E66-BDEB-4E53-B43A-693BE8BC4112@.microsoft.com...
> Can you use DBMail for job and alert emails without having to resort to
> using
> the DBMail stored procs? I have DBMail setup and the test email works
> fine
> but when I run a job and expect to see a completion email send to a
> defined
> operator no email occurs but neither does any error stating why the email
> was
> not sent. I have told SQLAgent to use DBMail and a specified account so I
> am
> unsure what else I need to do.|||I found the issue. When you alter a DBMail configuration you need to restar
t
SQL Server Agent. The SQL Server Agent retains the last DBMail setting that
was available when the Agent started. Since I had no DBMail the last time
SQL Server Agent had been started it did not care what I was doing with
DBMail until I started the Agent again and then it refreshed its information
and worked fine.
This means any changes to an existing configuration of DBMail will also
require a restart of SQL Server Agent otherwise the Agent will be using the
configuration that existed when it started last. I was hoping for more of a
dynamic communication between DBMail and SQL Server Agent but it is working
now for jobs and alerts so hooray.
"Michael D'Angelo" wrote:

> Database Mail alerts did not work for me until after applying SQL 2005 SP1
.
> "Jerry Boggess" <JerryBoggess@.discussions.microsoft.com> wrote in message
> news:BF1A9E66-BDEB-4E53-B43A-693BE8BC4112@.microsoft.com...
>
>

DBMail used for job and alert emails

Can you use DBMail for job and alert emails without having to resort to using
the DBMail stored procs? I have DBMail setup and the test email works fine
but when I run a job and expect to see a completion email send to a defined
operator no email occurs but neither does any error stating why the email was
not sent. I have told SQLAgent to use DBMail and a specified account so I am
unsure what else I need to do.Any errors on the Database Mail Log? (Right-click Database Mail and select
View Database Mail Log).
Ben Nevarez, MCDBA, OCP
Database Administrator
"Jerry Boggess" wrote:
> Can you use DBMail for job and alert emails without having to resort to using
> the DBMail stored procs? I have DBMail setup and the test email works fine
> but when I run a job and expect to see a completion email send to a defined
> operator no email occurs but neither does any error stating why the email was
> not sent. I have told SQLAgent to use DBMail and a specified account so I am
> unsure what else I need to do.|||Database Mail alerts did not work for me until after applying SQL 2005 SP1.
"Jerry Boggess" <JerryBoggess@.discussions.microsoft.com> wrote in message
news:BF1A9E66-BDEB-4E53-B43A-693BE8BC4112@.microsoft.com...
> Can you use DBMail for job and alert emails without having to resort to
> using
> the DBMail stored procs? I have DBMail setup and the test email works
> fine
> but when I run a job and expect to see a completion email send to a
> defined
> operator no email occurs but neither does any error stating why the email
> was
> not sent. I have told SQLAgent to use DBMail and a specified account so I
> am
> unsure what else I need to do.|||I found the issue. When you alter a DBMail configuration you need to restart
SQL Server Agent. The SQL Server Agent retains the last DBMail setting that
was available when the Agent started. Since I had no DBMail the last time
SQL Server Agent had been started it did not care what I was doing with
DBMail until I started the Agent again and then it refreshed its information
and worked fine.
This means any changes to an existing configuration of DBMail will also
require a restart of SQL Server Agent otherwise the Agent will be using the
configuration that existed when it started last. I was hoping for more of a
dynamic communication between DBMail and SQL Server Agent but it is working
now for jobs and alerts so hooray.
"Michael D'Angelo" wrote:
> Database Mail alerts did not work for me until after applying SQL 2005 SP1.
> "Jerry Boggess" <JerryBoggess@.discussions.microsoft.com> wrote in message
> news:BF1A9E66-BDEB-4E53-B43A-693BE8BC4112@.microsoft.com...
> > Can you use DBMail for job and alert emails without having to resort to
> > using
> > the DBMail stored procs? I have DBMail setup and the test email works
> > fine
> > but when I run a job and expect to see a completion email send to a
> > defined
> > operator no email occurs but neither does any error stating why the email
> > was
> > not sent. I have told SQLAgent to use DBMail and a specified account so I
> > am
> > unsure what else I need to do.
>
>