Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 5.03 KB

File metadata and controls

70 lines (49 loc) · 5.03 KB
title Mapping Source and Target Databases (AccessToSQL)
description Learn to specify a target database for Access database migration to SQL Server or Azure SQL Database, including multiple databases to multiple databases.
author nilabjaball
ms.author niball
ms.date 01/19/2017
ms.service sql
ms.subservice ssma
ms.topic conceptual
ms.collection
sql-migration-content
f1_keywords
ssma.access.schemamappingpanel.f1
helpviewer_keywords
database schemas
mapping, databases
schemas, mapping to
schemas, SQL Azure
schemas, SQL Server
source database
target database

Mapping Source and Target Databases (AccessToSQL)

When you connect to [!INCLUDEssNoVersion] or SQL Azure, you need to specify a target database for migration. If you have multiple Access databases you can map them to multiple [!INCLUDEssNoVersion] databases (or schemas) or to multiple schemas under the connected Azure SQL Database.

SQL Server or Azure SQL Database schemas

[!INCLUDEssNoVersion] databases use the concept of schemas to separate objects within a database into logical groups. For example, a library database could use three schemas named books, audio, and video to separate book, audio, and video objects from each other. By default, the access database is mapped to master database and dbo schema in [!INCLUDEssNoVersion] and to connected database and dbo schema in SQL Azure.

Unless you customize the mapping between each Access database and the [!INCLUDEssNoVersion] database and schema, SSMA will migrate all the schemas and data associated with the access database to the default database mapped.

Modifying the Target Database and Schema

SSMA lets you map each Access database to [!INCLUDEssNoVersion] or Azure SQL Database. The following procedure describes how to customize the mapping per database.

To modify the target database and schema

  1. In the Access Metadata Explorer pane, select access-metadata.

    Schema mapping is also available when you select the Databases node or any database node. The schema mapping list is customized for the selected object.

  2. In the right pane, click the Schema Mapping tab.

    You will see a table containing access database names and its corresponding ssNoVersion or Sql Azure schema. The target schema is denoted in a two part notation (database.schema).

  3. Select the row that contains the mapping you want to customize, and then click Modify.

  4. In the Choose Target Schema dialog box, you may browse for available target database and schema or type the database and schema name in the textbox in a two part notation (database.schema) and then click OK.

Modes of Mapping

  • Mapping to SQL Server

You can map source database to any target database. By default source database is mapped to target [!INCLUDEssNoVersion] database with which you have connected using SSMA. If the target database being mapped does not exist on [!INCLUDEssNoVersion], then you will be prompted with a message "The Database and/or schema does not exist in target [!INCLUDEssNoVersion] metadata. It would be created during synchronization. Do you wish to continue?" Click Yes. Similarly, you can map schema to non-existing schema under target [!INCLUDEssNoVersion] database which will be created during synchronization.

  • Mapping to SQL Azure

You can map the source database to the connected target [!INCLUDEssNoVersion] database or to the any schema in the connected target [!INCLUDEssNoVersion] database. If you map source Schema to any non-existing schema under connected target database, then you will be prompted with a message "Schema does not exist in target metadata. It would be created during synchronization. Do you wish to continue? " Click Yes.

Reverting to Your Initial Database and Schema

If you customize the mapping between an Access database and a [!INCLUDEssNoVersion] or Azure SQL Database, you can revert the mapping back to the database that you specified when you connected to [!INCLUDEssNoVersion] or SQL Azure.

To reset to default database and schema

  1. Under the schema mapping tab, select any row and click Reset to Default to revert to the default database and schema.

Next Step

The next step in the migration process is converting database objects

See Also

Migrating Access Databases to SQL Server