Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Nj_young  
#1 Posted : Thursday, October 24, 2019 8:33:07 AM(UTC)
Nj_young
Rank: Advanced Member

Reputation:

Groups: Registered
Posts: 84

Thanks: 2 times

What is the process for connecting to the SQL database with MS Access? I open the .dsn file, but then Access provides me with a long list of tables. Which tables should be opened and which fields should be selected in each table for use as unique identifiers?

Warwick Wood  
#2 Posted : Friday, October 25, 2019 8:20:01 AM(UTC)
Warwick Wood
Rank: Administration

Reputation:

Groups: Registered, Administrators
Posts: 498
Man
Location: Byron Bay

Was thanked: 19 time(s) in 19 post(s)

Hi Nick,

While Access does connect to SQL Server databases, and has a few mechanisms to do so (ie https://support.office.com/en-us/article/import-or-link-to-data-in-an-sql-server-database-a5a3b4eb-57b9-45a0-b732-77bc6089b84e) we'd recommend connect via SQL Server Management Studio if you are going to be looking at the database tables or views.

If you are interested in the reporting aspects of Access also take a look at Power BI as an alternative (free from Microsoft).

However if you do need to link to SQL Server from Access then at one of the steps Access will prompt you for Unique Record Identifiers for each table, which can be a bit tedious.   The main data tables in ESdat all have an ID field which you can select as the Unique Record Identifier.  Otherwise  the Primary Key fields for each table ensure uniqueness.    

In terms of which tables you should open, just select the one you are looking to get the data from in Access.  The list of the main data tables for ESdat are given in ESdat under "Data Tables) (blue button along the top).

Regards,

Warwick

thanks 1 user thanked Warwick Wood for this useful post.
Nj_young on 10/26/2019(UTC)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.