Data Type Mapping between MS Access and MS SQL Server


Access database is one of the famous traditional database management system.  But, the need has changed in rapidly developing digital world  to handle huge amount data to make decisions. This blog post is not about data management but I want to share data migration tips that is required while migration the data from MS Access to MS SQL Server.

Data Type compatibility matching

accesstoSQLServer

We can always use SSMA for the database migration project. We can download this tool here.

 Useful links:

SQL Server Migration Assistant for Access

Upload data from MS Access database to SQL Server – SSIS


SSIS is a heterogeneous data processing platform. We can handle very old text file to Cloud Database (SQL Azure) and many other third-party data sources.

In this blog post, I am going explain how to create a package that uploads Microsoft Access database to SQL Server.

Implementation

Scenario: I have downloaded a sample database “zipcodes” from about.com database site. I am using this database as my data source.

There are three tables in that source database. But, I am transferring a table “States” with data to SQL Server 2012 database.

Step 1: Create a package and Add ADO NET connection in connection manager

Creating a new connection

pic2Configure connection with MS Access database

pic4Click OK

pic3

Step 3: Add ADO NET source into Data Flow Task

adonet

Configure ADO NET source task with database connection and table

pic5Step 4: Add ADO NET destination and connect to your local database.

Create connection for Destination database

pic6

Create new table. This table schema is extracted from the data source

pic7Map columns between data source and destination  in the Mappings page and Click OK

pic8

We have completed the package design.

Step 5: Execute the package now

completedWe have created a simple package to migrate MS Access table to SQL Server.

You can also download Microsoft Access Database Engine 2010 Redistributable here.