SMS: An Error Was Reported While Executing the Database Upgrade

Last reviewed: March 18, 1998
Article ID: Q180407
The information in this article applies to:
  • Microsoft Systems Management Server version 1.2

SYMPTOMS

When you run Setup.exe and attempt to apply Service Pack 2 (SP2) or Service Pack 3 (SP3) to a Microsoft Systems Management Server version 1.2 Site Server, an error occurs and you receive the following error message:

   An error was reported while executing the database upgrade script
   UPGRD12.SQL. The error was reported on line 180. Continue with setup?
   Press Okay to skip the upgrade script or Press Cancel to cancel setup.

CAUSE

Line number 180 in the Upgrd12.sql script runs the Dbcnv12a.exe program to convert tables in the Systems Management Server database through the SqlExec function. This function may not work in some SQL environments that use integrated security.

WORKAROUND

Make the following two changes to the Upgrd12.sql script.

  • Replace line number 180 ("sqlexec dbcnv12a") with

          EXEC master..xp_cmdshell "C:\SMS\SITE.SRV\X86.BIN\dbcnv12a.exe"
    
  • Replace the last line ("sqlexec dbcnv12") with

          EXEC master..xp_cmdshell "C:\SMS\SITE.SRV\X86.BIN\dbcnv12.exe"
    

The command shell extended stored procedure uses the SQL security context of the user who is logged in, which works well in SQL integrated security environments.

Copy Systems Management Server SP3 to the system's hard disk, copy the new Upgrd12.sql script to this source, and then run the SP3 Setup.exe program again.

Verify that the Dbcnv12a.exe and Dbcnv12.exe which are mentioned in the modified script's path, actually exist in the directory specified.


Additional query words: prodsms
Keywords : smsdatabase
Version : WinNT:1.2
Platform : winnt
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 18, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.