This article was previously published under Q250616
Novice: Requires knowledge of the user interface on single-user computers.
This article applies only to a Microsoft Access database (.mdb).
For a Microsoft Access 2002 version of this article, see 285829.
Data Transformation Services (DTS) is an alternative method that you can use to move data from a Microsoft Access database to Microsoft SQL Server or Microsoft Data Engine (MSDE).
NOTE: Using DTS to import Access tables creates the Unicode character fields nChar, nVarChar, and nText by default. These fields may cause problems when linking from Access 97, which does not support Unicode. Microsoft recommends that these fields be converted to Char, VarChar, and Text when linking from Access 97.
DTS provides the functionality to import and export data between SQL Server and any OLE DB or ODBC data source, including Microsoft Access. Both SQL Server and MSDE include DTS and the DTS Import and Export Wizard that enable you to create and run DTS packages interactively.
You can use the DTS Import and Export Wizard to automatically create tables on SQL Server, and then to copy data from Access to the new SQL Server or MSDE tables. DTS can move data at a faster rate than the Microsoft Access Upsizing Wizard can, but DTS does not provide all of the features of the Access Upsizing Wizard. The following is a list of actions that the Access Upsizing Wizard can perform, but which the DTS Import and Export Wizard cannot perform:
If an Access table has a primary key, the Access Upsizing Wizard automatically re-creates the primary key on the table that it generates on SQL Server; DTS does not.
The Access Upsizing Wizard automatically migrates all rules and defaults that exist in a table to SQL Server; DTS does not.
If tables in an Access database are related, the Upsizing Wizard automatically re-creates these relationships on SQL Server; DTS does not.
DTS does not upsize any queries that exist in an Access database.
Using the DTS Import and Export Wizard
The following steps demonstrate how to use the DTS Import and Export Wizard to copy the Orders and Order Details tables from the sample database Northwind.mdb into a new SQL Server or MSDE database.
NOTE: Follow these steps on the computer that is running SQL Server or MSDE.
Click Start, point to Programs, and then click either the MSDE or Microsoft SQL Server 7.0 program group, depending on which server you are running.
In the MSDE or Microsoft SQL Server 7.0 program group, click Import and Export Data.
When the Data Transformation Services Wizard appears, click Next.
In the Choose a Data Source screen, pick Microsoft Access in the Source box.
Click the Build button (...) next to File Name box, and browse to the Program Files\Microsoft Office\Office\Samples folder.
Double-click Northwind, and then click Next.
In the Choose a Destination screen, choose Microsoft OLE DB Provider for SQL Server in the Destination box.
In the Server box, click (local).
Enter a user name and password for a SQL Server or MSDE user who has permissions to create tables and databases on the server.
In the Database box, click <new>.
Provide a name for the new database in the Name box. Accept the default values in the Data file size and Log file size boxes, and then click OK.
Click Next twice.
In the Tables list, click the Orders and Order Details tables.
Click Next twice, and then click Finish.
The DTS package that you created with the DTS Import and Export Wizard will run. When the DTS package is finished, click OK, and then click Done to close the wizard.
For more information about DTS and the DTS Import and Export Wizard, refer to SQL Server 7.0 Books Online, which is available for download from the following Microsoft Web site: