Query used by SQL Server Management Pack for monitoring database backups

I use SCOM 2012 R2 and the SQL Server Management Pack to monitor SQL Server database backups. I believe I am getting false positives. SCOM reports database are not backuped, while in fact they are. So I need to troubleshoot this. I suspect SCOM is querying
the backup history in the msdb database. I want to know which query SCOM uses.
I have tried looking in the monitor's definition but I suspect the query is embedded in the management pack files which are binary. I have also tried running a trace using the SQL Server Profiler on my test environment and overriding the interval to 60 seconds,
but I don't see a relevant query being executed. I also don't see the alert reappear so I suspect SCOM does not honor the interval in a way I would expect.
What query, or other method, does SCOM use to check database backups?
Thanks in advance.

Thank you both Ivan and Michael,
I only saw your messages by email and didn't see your screen shot before I extracted the query myself. In my own queries I calculate the backup age in hours instead of days because of daily full backups. Perhaps It will be a good idea to create my own monitors
from scratch like I used to do with Nagios.
I will study the vbscripts and might create my own version which allows the query to be entered as an parameter and move all code to a .Net class which can be called from vbscript as an COM object. This way I hope to reduce the vbscript code to an minimum
while keeping the flexibility of the SCOM Operations Console and the robustness of .Net. I suspect I want to make more non standard monitors in the future.
Regards,
Arjen

Similar Messages

  • Error Using the SQL Server 2000 Driver for JDBC Service Pack 3

    Hi,
    I�m using the SQL Server 2000 Driver for JDBC Service Pack 3. The connection is succesfully, but when I use de statement.executequery() method, there is the follow exception:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'PEC_COUNTRY'.
    This is my code:
    ResultSet resultSet;
    Statement statement;
    Connection connection;
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://S0MALMUERTA:1433;user=sa;password=");
    statement = connection.createStatement();
    resultSet = statement.executeQuery("SELECT COY_INX, COY_NAME, COY_ICO FROM PEC_COUNTRY
    ");When I make the last instruction, occurs the above exception
    Thanks in advance
    Luija

    The way you are connecting, the default database used will be 'master' and i guess that the table PEC_COUNTRY was defined in another database.
    If it is the case you need to specify the database name.
    connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://S0MALMUERTA:1433;DatabaseName=yourdb;user=sa;password=");

  • Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database"

    Hi, Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database" ?
    When I use Connect Object Explorer, the "Connect to Server" dialog box which pops up has only 4 selections in the Server Type Drop Down List. They are Database Engine, Analysis Services, Reporting Services & Integration Services. I have read
    somewhere that there should be a compact database option. but I do not see it.
    What I would like to do is use free form SQL Queries against the tables in "SQL Server Compact 4.0 Local Database" .
    Once I have validated these queries, then I will use them in my Visual Studio 2012 C#, ASP.NET application. I created the Local Database using Visual Studio 2012 for use by my application.
    Thank you for your help..
    diana4

    Hello,
    With SSMS 2005 we have had the Option to work with SQL CE database files, but not with higher Version of SSMS.
    You can use the free SQL CE Toolbax instead; see
    http://sqlcetoolbox.codeplex.com/
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • HP Managment Pack for Monitoring Gen8 Server DMS Service can be clustered or not.

    Hello ALL,
    I am trying to configure HP Managment Pack for Monitoring Gen8 Server monitoring and i have encoutered very small problem but it is now a big problem for me. Currently we have deployed one server to monitoring the HP Gen8 Server
    Esx monitoring. But we want to create DR Site where we want to add same devices which will help us to failover when existing server will be down or HP DMC Service is down. Any one have tried this solution please let us know in DR or cluster way.
    Omkar umarani SCOM STUDENT

    Hi,
    If you are looking for SCOM cluster way to monitor Gen8 Server, then we can build multi management servers within the management group, or create multi management groups to monitor Gen8 server.
    More details:
    http://technet.microsoft.com/en-us/library/hh298610.aspx
    And if you are looking for ways to failover HP DMC serice, then I would like to suggest you post in the HP forum.
    Regards,
    Yan Li
    Regards, Yan Li

  • How to install Oracle Change Management Pack for 11g database.

    Hi,
    I need to setup "Oracle Change Management Pack" for my oracle11g database. Can any body help to do the same. i am able to configure following.
    Oracle Configuration Management Pack
    Oracle Data Masking Pack
    Oracle Diagnostic Pack
    Oracle Tuning Pack
    using following URL
    http://docs.oracle.com/cd/B28359_01/license.111/b28287/options.htm#CIHBGJCC but not able to install "Oracle Change Management Pack for 11g database". Can any body share any pointers if any...
    Regards
    DBA.

    As far as I could understand, this is a part of Oracle EM/Grid installation:
    The sections that follow describe the Oracle management packs. The management packs can be purchased only with Enterprise Edition. The features in these packs are accessible through Oracle Enterprise Manager Database Control, Oracle Enterprise Manager Grid Control, and APIs provided with Oracle Database software.

  • SQL Server Management Express for Windows 8

    Is there an SQL Server Management Express version for Windows 8? I tried using the 2005 and 2008 Express version but get an error indicating Windows 8 is not compatible. Thanks

    Hello,
    Please download it from the following URL fully compatible with Windows 8.x.
    http://www.microsoft.com/en-us/download/details.aspx?id=29062
    ENU\x64\SQLManagementStudio_x64_ENU.exe
    ENU\x86\SQLManagementStudio_x86_ENU.exe
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Problem to create "New Database Diagram" in Microsoft SQL Server Management Studio for SQL Server 2012 SQL Express

    Hi,
    I have installed SQL Server 2012 Express edition (name of installation media: en_sql_server_2012_express_edition_with_advanced_services_x64.exe) from MSDN and I have installed the application on my pc with Windows 7 Exterprise.
    Everything is working fine except when I am trying to create "New Database Diagram", where I recieve following error message:
    TITLE: Microsoft SQL Server Management Studio
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Microsoft.VisualStudio.OLE.Interop)
    BUTTONS:
    OK
    I have tried two times to reinstall SQL Server 2012 Express and I have installed Cumulative Update #3 for SQL Server 2012 and restarted the machine, but I have still the same problem with the same error message.
    Installed the following fixes:
    1) 2012_RTM_DAC_CU3_2723749_11_0_2332_x64
    2) SQLServer2012_RTM_CU3_2723749_11_0_2332_x64
    These files was installed successful.
    How can I solve the problem?
    BR
    Jan Nilsson

    Hi Jan,
    Have you installed Visual Studio in your machine?
    The problem seems to be related to installing and uninstalling the VS 2011 RC0 program.
    The workaround involves copying the files from another PC with SQL 2008 or 2012 from one machine to another. Just replace this folder:
    C:\Program Files (x86)\Common Files\microsoft shared\MSDesigners8
    See also the following for further details:
    http://social.msdn.microsoft.com/Forums/en-GB/vstsdb/thread/d65c71f5-3887-4f2a-bbd3-e799a4ac6fdc
    Best Regards,
    Iric
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Find Connection String used by SQL Server Management Studio

    I am having problems getting my VS C# .NET application to connect to a SQL Server Database, even though I can connect to it (on the same machine) using SQL Server Management Studio.
    Is there any way I can find the connection string that SQL Server Management Studio generates when it connects?

    Hi,
    As you have Visual Studio on your machine, I think we can also use the Visual Database Tools of Visual Studio to generate the connection string.
    Please:
    1. Create a new data connection to the SQL Server database in the
    Server Explorer of Visual Studio
    2. After the connection is established, right-click on the connection name and select
    Properties. There is an item called Connection String in the
    Properties window.
    Reference:
    How to: Add New Data Connections in Server Explorer/Database Explorer 
    http://msdn.microsoft.com/en-us/library/3d1wkhas.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • SCOM 2012 R2 Management Packs for monitoring IBM Tivoli

    Are there management packs available to monitor IBM Tivoli through SCOM 2012 R2?
    If yes, what all components in IBM Tivoli family can be monitored?
    Thanks in advance

    Hi,
    I think if there is any Management Pack for IBM Tivoli, then this Management Pack should be provided by IBM, and this may be fee-based also, I would like to suggest you contact IBM for this.
    And hope the below link be helpful:
    http://unofficialsystemcentercatalog.wordpress.com/2012/12/27/operations-manager-is-there-a-management-pack-for/
    Regards,
    Yan Li
    Regards, Yan Li

  • Blocking query in SSMS(SQL Server Management Studio)

    I am a Fresher in writing queries.
    I wrote following a query to block the A/P invoice, if price added in A/P invoice and the Price in Price list is different.
    and this invoice should not be able to add by users other than UserSign = 5,6.
    IF (@transaction_type='A' OR @transaction_type = 'U') AND @OBJECT_TYPE='18'
    BEGIN
        If EXISTS(SELECT T1.ItemCode,
                T1.Price AS Inv_Price,
                T2.U_ListPrice AS Listed_Price
        FROM OPCH AS T0 
            INNER JOIN
            PCH1 AS T1 ON
             T0.DocEntry = T1.DocEntry
            LEFT OUTER JOIN    
            dbo.[@PRICELISTS] AS T2 ON
             T0.CardCode = T2.U_BPCode AND
             T1.ItemCode = T2.U_ItemNo
        WHERE
            (T0.UserSign <> 6) AND
            (T0.UserSign <> 5) AND
            (T1.DocEntry = @list_of_cols_val_tab_del) AND
            (T1.Price <> T2.U_ListPrice)
            (T2.U_ListCurrency = T0.DocCur)
    BEGIN
    SET @error = 123 --1234567991234567918
    SET @error_message = 'Deviation in price'
    END
    After executing, still everyone can add the A/P invoice with price difference.
    Please look at the above code and help me to find out my fault to make it correct.
    Is there any need to add some condition in where clause?
    Regards,
    Hitul Varia

    Hi,
    Try this:
    IF (@transaction_type='A' OR @transaction_type = 'U') AND @OBJECT_TYPE='18'
    BEGIN
        If EXISTS(SELECT T0.docentry
        FROM OPCH  T0 
            INNER JOIN
            PCH1  T1 ON
             T0.DocEntry = T1.DocEntry
            LEFT OUTER JOIN    
            dbo.[@PRICELISTS]  T2 ON
             T0.CardCode = T2.U_BPCode AND
             T1.ItemCode = T2.U_ItemNo
        WHERE
            (T0.UserSign <> 6 OR
            T0.UserSign <> 5) AND
            T0.DocEntry = @list_of_cols_val_tab_del AND
            T1.Price <> T2.U_ListPrice and
            T2.U_ListCurrency = T0.DocCur)
    BEGIN
    SET @error = 123 --1234567991234567918
    SET @error_message = 'Deviation in price'
    END
    Thanks & Regards,
    Nagarajan

  • Problem in SQL Server 2000 Driver for Java Database Connectivity

    Hi,
    I have problem with MS SQL 2000 JDBC driver. I am using Type-4 driver for my application. I can able to connect through DSN. If I use Type-4 Driver to connect database means it gives the following exception.
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at test.TestDB.main(TestDB.java:17)
    My Java Code :
    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    Class.forName(driver);
    Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://192.168.48.90:1433;User=sa;Password=sa;DatabaseName=GWCANADA");
    Statement st = con.createStatement();
    ResultSet rs = st.executeQuery("select * from emp");Do we have any other jdbc driver to connect MS SQL 2000 aprt from the Microsoft JDBC driver.
    Plese help me to resolve this problem
    Thanks
    ---Suresh

    Same problem is here: http://forum.java.sun.com/thread.jspa?threadID=419214&tstart=135
    Check that your server is running (telnet <hostname> 1433)
    --Xapp                                                                                                                                                                                                                                                                                                                   

  • Do we have a management pack for monitoring Hitachi NAS .

    Can I monitor HNAS using SCOM

    Hi,
    See how this Hitachi adapter integrates with Microsoft System Center managed environments to provide Hitachi storage capabilites through Microsoft's interface.
    http://www.youtube.com/watch?v=spTVo_cbHP4
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this
    third-party contact information.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SQL Server - managing increasing number of databases from TFS

    How do we integrate a server that has increasing number of databases in TFS?

    Hello,
    I don't understand what you mean, can you explain it more detailed, please?
    In common you have just one TFS (= Team Foundation Server) database + one DWH with several collections.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Using MS-SQL Server tables to build Universes

    My team has been tasked to create Universes so users can create WEBI reports.  We don't have a business warehouse, but that appeared not to be a problem as our understanding is that we can create Universes directly from MS-SQL Server tables. 
    On attempting to use Microsoft SQL Server Management Studio (20005), we find that once we expand the list of tables for SAP performance slows down to a 5 to 10 second response time between mouse clicks. 
    Is there a setting to work around this?  Are we approaching this the wrong way?  Is there documentation that addresses this?
    Thanks,
    Leo

    Hi Leo,
    There are a couple of options which can help improve the performance of your designer.
    1) Under tools, options on the graphics tab if you turn off the Show Row Counts, then the db will not be queried for the number of rows
    2) Check tools, options general ensure Automatic parse upon defintion and check universe integrity at opening are checked off
    It is not clear from your message, but you mentioned SAP as your source. I am not sure if you intended that you were connecting directly to SAP or not.
    The number of tables can also have an impact of the performance of the designer tool. You can limit the number of tabels by tailoring a tables strategies. This means you can limit the query that returns the list of table to a specific set.
    Hope this helps
    Alan

  • MS SQL Server Management studio error

    I am using MS SQL Server Management studio to query a sql db and unable to connect using the Windows Authentication and get the following error message.  Can someone help me troubleshoot this please?
    Login failed for user 'domain\windows username', (Microsoft SQL Server, Error: 18456).
    Regards

    This error occurs when user won't have access on SQL server. Refer below to article to resolve the issue:
    http://support.microsoft.com/kb/555332/en-us
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

Maybe you are looking for