Microsoft KB Archive/823829

= Feature Pack: The Web Reporting Tool Displays a SQL Error Message When You Try to Run a Report That Is Based on a Company Name =

Article ID: 823829

Article Last Modified on 10/25/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Standard Edition

-



SYMPTOMS
When you use the SMS Web Reporting tool from the Microsoft Systems Management Server (SMS) Software Update Services Feature Pack to run a report that is based on a company name, you may receive the following SQL error message if the company name that you select or enter contains a comma:

There was an error in the SQL Statement.

The following error was returned:

Procedure or function usp_SMSR501 has too many arguments specified. [-2147217900]

If you believe this query is syntactically correct, please refer to the release notes topic Custom Reports and Column Picker Limitations for information that may help you resolve this error.

For example, you may receive this error message after you click the arrow next to a company name to run the List all software companies report or after you type a company name to run the List all products for a specific company report.



CAUSE
If a software company name contains a comma, SMS Web Reporting may pass incorrect data to the SQL stored procedure that it is using to generate the report.



RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;[LN;CNTACTMS]

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Version         Size       File name                 Platform -

30-Jul-2003 20:01  1.0.200.125     1,241,088  Smswebreporting_enu.exe   X86 30-Jul-2003 20:01  1.0.200.125     1,093,632  Smsaddwebreports_enu.exe  X86 11-Jul-2003 23:36                      5,065  Reporthelp.asp            X86 10-Jul-2003 20:50                     26,676  Treedata.xml              X86

Note Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files.

How to Install the Hotfix
Before you install this hotfix, you must first remove the existing installation of SMS Web Reporting. When you remove the existing installation, any existing custom reports that you have created are retained. However, as a precaution, it is recommended that you back up the current installation of SMS Web Reporting before you install this hotfix.

To install the hotfix:  Remove the existing installation:  On the desktop, click Start, point to Settings, and then click Control Panel. Double-click Add/Remove Programs. If Web Reports Add-in for Software Updates (SMS Additional Web Reports) is installed, click SMS Additional Web Reports in the list of currently installed programs, and then click Change/Remove to remove it. When the program is removed, click Close. Double-click Add/Remove Programs. Click SMS Web Reporting in the list of currently installed programs, and then click Change/Remove to remove it. When the program is removed, click Close.</li></ol> </li> Install the updated SMS Web Reporting tool: <ol style="list-style-type: lower-alpha;"> Run Setup for the appropriate SMSWebReporting: SMSWebReporting_  .exe (where   represents the 3-digit language code).</li> If you previously also had Web Reports Add-in for Software Updates installed, install the updated Web Reports Add-in for Software Updates by running Setup for the appropriate SMSAddWebReports: SMSAddWebReports_  .exe (where   represents the 3-digit language code).

If you currently do not want to install the Web Reports Add-in for Software Updates but decide later to install it, make sure that you install the version that is released as part of this hotfix (or a later version) to avoid overwriting newer common files that are shared between Web Reports Add-in for Software Updates and SMS Web Reporting.</li></ol> </li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Keywords: kbhotfixserver kbqfe KB823829

-

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

© Microsoft Corporation. All rights reserved.