Reputation: 73
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.
Upvotes: 1
Views: 3611
Reputation: 123399
(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:
SSMA for Access report:
Resulting SQL Server database:
Upvotes: 4
Reputation: 55
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:
Upvotes: 1