1

Could someone tell me if you can import an Access database into SQL Server retaining the keys and the relationships established in Access?

If so, please show me how I can do this.

4

2 Answers 2

4

(Quoting a comment to another answer:)

I am tried with Microsoft SQL Server Migration Assistant for Access and this tool doesn't export relationships

Nonsense. SQL Server Migration Assistant for Access definitely can transfer an Access database to SQL Server and preserve the relationships between the tables.

Access database:

accessDb.png

SSMA for Access report:

ssmaReport.png

Resulting SQL Server database:

ssmsDiagram.png

Sign up to request clarification or add additional context in comments.

Comments

1

This refers to Access 2007 - Access does not automatically create relationships between related tables at the end of an import operation. You must manually create the relationships between the various new and existing tables by using the options on the Relationships tab. To display the Relationships tab:

https://support.office.com/en-au/article/Import-or-link-to-SQL-Server-data-a5a3b4eb-57b9-45a0-b732-77bc6089b84e

2 Comments

I thought the question was about importing in the other direction, from Access to SQL Server.
I am tried with Microsoft SQL Server Migration Assistant for Access and this tool doesn't export relationships... I think it's impossible...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.