Solved

MS Access - Embed ODBC Connection Info?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

863 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

30 Experts available now in Live!

Get 1:1 Help Now