The Data Transformation Services (DTS) Import/Export Wizard offers the simplest method of building a DTS package, interactively guiding you through the process of copying and transforming data. Following are the basic steps for creating a package with the DTS Import/Export Wizard:
You need to specify whether you are exporting data from an instance of Microsoft® SQL Server™ to another data source (for example, a second instance of SQL Server 2000) or importing data from another data source to an instance of SQL Server. Both choices are available in SQL Server Enterprise Manager, through the Data Transformation Services node of the console tree, and as command switches through the dtswiz command prompt utility.
When accessing the DTS Import/Export Wizard from the Start menu or the command prompt, you do not need to specify whether you are importing or exporting data.
You can select from a list of OLE DB data sources, which includes providers for both databases and nondatabase sources (for example, text files). You also must specify any required login, security, or file location information. If you are importing data from a text file, you must specify the format and delimiters of the text file.
When you import data, the active server connection is specified as the default destination server. When you export data, the active server connection is specified as the default source server.
For more information, see Copy SQL Server Objects Task.
If you copy the data or the results of a query, you can customize the data being copied to the destination. You can:
After you have created the package, you need to decide:
You can save the package to the SQL Server msdb database, to SQL Server 2000 Meta Data Services, as a structured storage file (.dts file), or as a Microsoft Visual Basic® file.
You can run the package after the DTS Import/Export Wizard completes, or you can schedule the package to execute on a regular basis using SQL Server Agent.
You can use the Create Publication Wizard to publish the data. For more information, see Replication Wizards.
Important Do not open a Microsoft Excel file that is being used as a source or destination during the wizard creation or execution, because a "file in use" error will occur.
To create a DTS package using the DTS Import/Export Wizard
To execute a DTS package from the DTS Import/Export Wizard