PRB: DTS Copy Table Uses Table Schema of Existing Table (247825)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q247825 SYMPTOMS
If you use the Data Transformation Services (DTS) Wizard with the Copy Table option and with the Drop and Re-create Destination Table option, the table that is created uses the schema of the table that was dropped and not the schema of the table to be copied.
CAUSE
This behavior is normal and by design. The wizard correctly creates the destination table as indicated, which defaults to the existing table's schema. Unlike object transfer, the wizard does not overwrite the destination table with the source table schema. You can edit the columns in the destination grid and change the destination schema default or change the SQL directly for the destination schema.
WORKAROUND
Drop the destination table first or use Transfer Object.
Modification Type: | Major | Last Reviewed: | 10/30/2003 |
---|
Keywords: | kbCodeSnippet kbprb KB247825 |
---|
|