SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Using WMI alert for mirroring in Sql server 2012


Using WMI alert for mirroring in Sql server 2012

Author
Message
Aspet Golestanian Namagerdi
Aspet Golestanian Namagerdi
Old Hand
Old Hand (382 reputation)Old Hand (382 reputation)Old Hand (382 reputation)Old Hand (382 reputation)Old Hand (382 reputation)Old Hand (382 reputation)Old Hand (382 reputation)Old Hand (382 reputation)

Group: General Forum Members
Points: 382 Visits: 836
We are using mirroring in Sql Server 2012 and we are using WMI alerts for some of events such as Connection lost,Manual failover,...

In alert definition we have set the followings:

Type: WMI event alert

NameSpace: \\.\root\Microsoft\SqlServer\ServerEvents\MSSQLSERVER

Query: select * from DATABASE_MIRRORING_STATE_CHANGE where State = 6

The alert is bing triggered correctly,but on email description instead of having meaningful explaination like 'Connection lost',We have the same query:

Query: select * from DATABASE_MIRRORING_STATE_CHANGE where State = 6

We have used the same implementation in our Sql Server 2008 servers and it is working fine.This mashine (Sql Server 2012) is a new mashine.

I would appreciate if someone help me on this.AlsoI checked and 'Include body of e-mail in notification message' was already set.

Thanks

Aspet
tony.barton 64870
tony.barton 64870
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 232
The alerts are slightly different in 2012, if you right click your alert, go to properties and then Options you are presented with a free text field to add any "Additional notification message to send" and whether to include the additional text in email, pager or net send notifications.
Hope this helps!
Tony
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search