kris
kris

Reputation: 1

Need to remotely create an ODBC connection to a SQl server

I have an Access 2007 database with a table in it that is linked to a SQL server. I need to roll this version of the database out to approximately 10 people in different states. In order to do that, they need an ODBC connection to the SQL server installed on their machines. I am looking for a way to do this remotely. Either through VBA in the database itself or perhaps a Batch file linked to their shortcut....I am open to ideas....

Upvotes: 0

Views: 15021

Answers (2)

Einstein
Einstein

Reputation: 4538

system ODBC is configured via the registry -- see HKLM\SOFTWARE\ODBC\ODBC.INI. You will need a key to match the DSN name and an entry in ODBC Data Sources for the key.

Upvotes: 0

David-W-Fenton
David-W-Fenton

Reputation: 23067

If you're naming the SQL Server instance and database exactly the same way on each machine, you should be able to create a DSN on your testbed machine, use it to link tables, then convert it to a DSN-less connection and distribute that.

Upvotes: 1

Related Questions