Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MS Access - Embed ODBC Connection Info?

Posted on 2010-09-13
2
Medium Priority
?
598 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

719 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