SQL 2012 performance counter name and value appearing in view but not in emailed alert

Answered SQL 2012 performance counter name and value appearing in view but not in emailed alert

  • Monday, June 18, 2012 11:10 PM
     
     

    Installed SQL Server 2012 Standard 32-bit RTM on my 32-bit Windows 7 Enterprise desktop PC with 4 GB of memory, as a named instance. I'm in the process of performing a test install in preparation for upgrading our development SQL Server. Everything going fine so far, database files copied, databases restored and upgraded from 2008, database mail enabled, etc.

    This query: select * from sys.dm_os_performance_counters order by counter_name

    produces a list of counters with cntr_value looking reasonable. Specifically, here is the total data file size counter:

    object_name: MSSQL$SQL2012:Databases 

    counter_name:  Data File(s) Size (KB)

    instance_name:  _Total   

    cntr_value: 2562880 

    cntr_type: 65792

    However when I create a performance alert, the email I receive looks like this, even though I have checked the box "Replace tokens for all job responses to alerts" pertaining to SQL Server Agent Properties--Alert System.

    DATE/TIME:        6/18/2012 2:50:53 PM

    DESCRIPTION:   The SQL Server performance counter 's' (instance 's') of object 's' is now above the threshold of s (the current value is s).

    Unfortunately 's' doesn't cut it, I need an actual number. Thanks for your help!

     

All Replies