Mapping Source and Target Data Types (AccessToSQL)
Access database types differ from SQL Server database types. When you convert Access database objects to SQL Server objects, you must specify how to map data types from Access to SQL Server. You can accept the default data type mappings, or you can customize the mappings as shown in the following procedures.
Default Mappings
SSMA has a default set of data type mappings. For the list of default mappings, see Project Settings (Type Mapping).
Customizing Data Type Mappings
By using the Project Settings dialog box, you can customize how types are mapped for all databases and database objects in a project. The type mappings for a project apply to all databases and database objects that do not have custom type mappings.
You can also customize data type mapping at the database or table level.
The following procedure shows how to map data types at the project, database, or database object level.
To map data types
To customize data type mapping for the whole project, open the Project Settings dialog box:
On the Tools menu, select Project Settings.
In the left pane, select Type Mapping.
The type mapping chart and buttons appear in the right pane.
Or, to customize data type mapping at the database or table level, select the database or table in the Access Metadata Explorer pane:
In the Access Metadata Explorer pane, expand access-metabase, and then expand Databases.
Select the database or table for which you want to customize the data type mapping.
In the right pane, click Type Mapping.
To add a new mapping, do the following:
In the Type Mapping pane, click Add.
In the New Type Mapping dialog box, under Source type, select the Access data type to map.
If the type requires a length, specify the minimum and maximum data lengths for the mapping by selecting the From and To check boxes, and then entering the values.
This lets you customize the data mapping for smaller and larger values of the same data type.
Under Target type, select the target SQL Server data type.
Some types require a target data type length. If it is required, enter the new data length in the Replace With box, and then click OK.
To edit a data type mapping, do the following:
In the Type Mapping pane, click Edit.
In the Type Mapping List dialog box, under Source type, select the Access data type to map.
If the type requires a length, specify the minimum and maximum data lengths for the mapping by selecting the From and To check boxes, and then entering the values.
This lets you customize the data mapping for smaller and larger values of the same data type.
Under Target type, select the target SQL Server data type.
Some types require a target data type length. If it is required, enter the new data length in the Replace With box, and then click OK.
To remove a data type mapping, do the following:
In the Type Mapping pane, select the row in the type mapping list that contains the data type mapping you want to remove.
Click Remove.
Next Steps
The next step in the migration process is convert access database objects to SQL Server objects