Microsoft KB Archive/918711

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

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 (&quot;*=&quot; or &quot;=*&quot;). 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:  Open SQL Server Management Studio, and then connect to the MOM Reporting database server. In Object Explorer, expand the MOM Reporting database server, expand Databases, and then Expand System Databases. Right-click the SystemCenterReporting database, and then click New Query. 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 , contact the system administrator. Install the Availability Reporting Management Pack.

<div class="status_section">

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:

http://www.microsoft.com/downloads/details.aspx?FamilyID=8a61d369-b785-4550-bde8-84e734ec5e40

<div class="moreinformation_section">

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

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.