Solved

MS Access - Embed ODBC Connection Info?

Posted on 2010-09-13
2
584 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

820 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