PRB: 6.0 Transfer Manager With Dependencies Causes Error 145

Last reviewed: May 1, 1997
Article ID: Q136118

The information in this article applies to:
  • Microsoft SQL Server, version 6.0

SYMPTOMS

An attempt to use the SQL Transfer Manager to transfer a version 6.0 database with the "Include Dependencies" checkbox selected will fail. Examination of the transfer log shows the following error messages:

   Server message 145, severity 1, state 15:  Order-by
      items must appear in the select-list if SELECT
      DISTINCT is specified.
   Server message 207, severity 2, state 16:  Invalid
      column name 'tid'.
   Server message 208, severity 1, state 16:  Invalid
      object name #tempudt'.
   Server message 208, severity 1, state 16:  Invalid
      object name '#t1'.
   Server message 208, severity 1, state 16:  Invalid
      object name '#t1'.
   Server error 10007, severity 5:  General SQL Server
      error: Check messages from the SQL Server.

This does not happen if you do not select the "Include Dependencies" checkbox.

CAUSE

If your source server is Microsoft SQL Server version 6.0, the OBJECT60.SQL script must have been run on the server if you are including dependencies. Otherwise, SQL Transfer Manager tries to create the 4.21 dependency- evaluator stored procedure, which fails due to parser changes in version 6.0.

This is documented in the Microsoft SQL Server "Administrator's Companion," Chapter 11, under "Transferring Objects and Data Using SQL Transfer Manager".

WORKAROUND

Run the OBJECT60.SQL script located in the \SQL60\INSTALL directory. See Appendix A of the "Administrator's Companion," "Using SQL Administrator and SQL Object Manager" for details on installing this script.

Alternatively, you can use the 204 trace flag as documented in the "Transact-SQL Reference" manual under "Trace Flags."


Additional query words: sql6 errors
Keywords : kbtool SSrvTran
Version : 6.0
Platform : WINDOWS
Issue type : kberrmsg


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: May 1, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.