Solved

MS Access - Embed ODBC Connection Info?

Posted on 2010-09-13
2
571 Views
Last Modified: 2012-05-10
So, this is probably an obvious question for the experts, but I've done some digging and haven't come across an answer.

I have an MS Access app that links to SQL tables on the back end.  I'd like to have our team copy the app onto their local systems and run it from there (for performance reasons).  However, this typically involves setting up the ODBC connection on each workstation, which is can be a pain in our environment.

Is there not a way to embed the ODBC connection info 'within' the Access DB?  Or, must I always use a DSN file?

Thanks in advance for any thoughts.

0
Comment
Question by:careybroph
2 Comments
 
LVL 21

Accepted Solution

by:
chapmanjw earned 125 total points
ID: 33666646
ODBC connections are controlled by Windows, not by Access.  So, you cannot embed the connection into Access.

You could create a batch file to be included with your database file to create the connection for you.  Here is a command-line example: http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Q_24130096.html
0
 

Author Closing Comment

by:careybroph
ID: 33666827
THANKS!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now