BUG: DTS Import/Export Wizard or TransferObjectsTask Fails to Maintain Filegroup Settings for Transferred Objects (300192)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
- Microsoft SQL Server 7.0
This article was previously published under Q300192
BUG #: 354301 (SHILOH_BUGS)
BUG #: 101735 (SQLBUG_70)
SYMPTOMS
If you use the Data Transformation Services (DTS) Import Wizard or the DTS Export Wizard to transfer objects from one database to another, the Filegroup settings for the object are not maintained even if the destination database does have the same filegroups.
Programs scripted using the TransferObjectsTask object from the DTS Package Object Library also fail to maintain the Filegroup settings for objects.
CAUSE
The wizards use the DTS Package Object Library to transfer objects between databases. The methods used are:
- DTS.TransferObjectsTask2
-and-
- DTS.TransferObjectsTask.
Both of these methods, with or without the ScriptOptionEx property set to DTSTransfer_ScriptEx_NoFG, place the object on the primary Filegroup.
WORKAROUND
To work around this behavior, script out the objects on the source database and apply the scripts to the destination database. The Filegroup settings for the objects are now preserved. Use DTS to copy the data over from the source to the destination.
The Copy Database Wizard does maintain the Filegroup settings for all the objects in the database. However, using the Copy Database Wizard may not be convenient for the following reasons: - The Copy Database Wizard requires you to transfer the whole database to the destination server.
- You cannot copy the database to the same server.
Using the SQL Server 2000 Enterprise Manager you can change the Filegroup settings for tables. Changing the Filegroup settings involves creating a new table with the correct Filegroup settings and then moving the data back into the table. Note that this may be too resource intensive a workaround for large tables.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/29/2003 |
---|
Keywords: | kbBug kbpending KB300192 |
---|
|