This article was previously published under Q268413
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 58148 (SQLBUG_70)
A Data Transformation Services (DTS) package that includes a "Transfer SQL Server Objects" task might fail with an access violation if the destination server is unnamed. If the package is run from the Enterprise Manager the following error message occurs:
Need to run the object to perform this operation. (SQL-DMO) Code execution exception : Exception_Access_violation
If you run the package by using the dtsrun utility, the following error message occurs:
DTSRun OnError: Transfer SQL Server Objects, Error = -2147221499 (80040005) "
This problem only applies to Microsoft SQL Server 7.0 Service Pack 2.
The destination does not have the local server name set correctly.
To verify the server name run the following query from Query Analyzer:
If the query returns "Null" the local server name is not set correctly.
If the server name exists, but is not identified as the local server, then you must run the following queries to resolve the issue:
sp_dropserver 'servername'gosp_addserver 'servername', local
If the server name does not exist you must run the following query to resolve the issue:
sp_addserver 'servername', local
For the name change to become effective, you must stop and restart the SQL Server service.
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.
dts transfer exception access violation service pack