Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MS Access - Embed ODBC Connection Info?

Posted on 2010-09-13
2
Medium Priority
?
607 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 500 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

885 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