Microsoft KB Archive/918711

From BetaArchive Wiki
Knowledge Base


Error message when you try to install the Availability Reporting Management Pack for Microsoft Operations Manager 2005 Service Pack 1: "Error: -2147217900: failed to execute SQL string"

Article ID: 918711

Article Last Modified on 10/27/2006



APPLIES TO

  • Microsoft Operations Manager (MOM) 2005 Service Pack 1, when used with:
    • Microsoft SQL Server 2005 Reporting Services




SYMPTOMS

When you try to install the Availability Reporting Management Pack for Microsoft Operations Manager (MOM) 2005 Service Pack 1 (SP1) , you receive the following error message:

Error: -2147217900: failed to execute SQL string, error detail: The query uses non-ANSI outer join operators ("*=" or "=*"). To run this query without modification, please set the compatibility level for the current database to 80 or lower, using stored procedure sp_dbcmptlevel. It is strongly recommended to rewrite the query using...

CAUSE

This problem occurs because the Microsoft SQL Server 2005 stored procedures that are used during the following operations are not strictly compliant with American National Standards Institute (ANSI) standard:

  • Installation of the Availability Reporting Management Pack
  • The Windows AvailabilityAnalysisReporting task

Strict ANSI compliance is enforced in SQL Server 2005 databases.

WORKAROUND

To work around this problem, change the database compatibility level of the SystemCenterReporting database from SQL Server 2005 (Level 90) to Microsoft SQL Server 2000 (Level 80).

Note You must change the database compatibility level before you install the Availability Reporting Management Pack.

To change the compatibility level of the SystemCenterReporting database, follow these steps:

  1. Open SQL Server Management Studio, and then connect to the MOM Reporting database server.
  2. In Object Explorer, expand the MOM Reporting database server, expand Databases, and then Expand System Databases.
  3. Right-click the SystemCenterReporting database, and then click New Query.
  4. In the query window, type sp_dbcmptlevel 'SystemCenterReporting',80, and then press CTRL+E to run the query. If the query ran successfully, you should receive the following message:

    executed DBCC execution completed

    Note If you receive DBCC Error message Text, contact the system administrator.
  5. Install the Availability Reporting Management Pack.


STATUS

This problem is resolved in version 05.0.5000.0000 of the Availability Reporting Management Pack. To obtain this version, visit the following Microsoft Web site:

MORE INFORMATION

If you install the Availability Reporting Management Pack for MOM 2005 SP1 on a computer that has SQL Server 2000 installed, and then upgrade to Microsoft SQL Server 2005, you should not have to change the compatibility level of the SystemCenterReporting database. However, if the Windows AvailabilityAnalysisReporting task is failing to run and reports a Last Result status of 0x80040e14 after the upgrade, the compatibility level of the SystemCenterReporting database may have been upgraded to level 90. You can examine the compatibility level by using the sp_dbcmptlevel stored procedure. For example, the sp_dbcmptlevel 'SystemCenterReporting' procedure displays the compatibility level.

Keywords: kbtshoot kbprb KB918711