FIX: Transfer of a View that Contains a UDF by Using DTS Export Data Fails with Error 208 (300272)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q300272
BUG #: 352081 (SHILOH_BUGS)
SYMPTOMS
Attempts to transfer a view by using the Data Transformation Service (DTS) Import/Export wizard fails under the following conditions:
- The view includes a user-defined function (UDF).
- When copying objects and data between SQL Server databases.
The following text is an example of the error message that displays:
Failed to copy objects from Microsoft SQL Server to Microsoft SQL Server
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'dbo.TestFunc'.
NOTE: "dbo.TestFunc" is the name of the UDF.
CAUSE
The view is being created in the destination database before the UDF, which is the dependent object. All the dependent objects must be created first.
RESOLUTIONTo resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack
WORKAROUND
Transfer all the objects that the view depends on first, and then when you transfer the view, do not include dependent objects.
STATUSMicrosoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbBug kbfix kbSQLServ2000sp1fix KB300272 |
---|
|