Solved

How do I distribute an .exe with an .mdb access file to users?

Posted on 2003-11-04
2
289 Views
Last Modified: 2010-04-01
Using VC++6, I was able to create an .exe file that connects to an .mdb Access database file, which I used the ODBC Data Source Administrator to add a data source name assigned to it.
The program works fine in my local machine. However when I distributed both the .exe file and the .mbd file to other users they could not execute it, unless they also have to use their ODBC Data Source Administrator to add the database name.

How do I make it transparent to the users so they don't have to do that step? i.e. All they need to do is to execute the .exe file and run it.
0
Comment
Question by:Volga
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 9683912
See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfcnotes_tn048.asp ("TN048: Writing ODBC Setup and Administration Programs for MFC Database Applications")
0
 
LVL 1

Assisted Solution

by:jploeg
jploeg earned 50 total points
ID: 9685676
Or do it without a datasource, and use a commection string like this:

"ODBC;DRIVER={MICROSOFT ACCESS DIRVER (*.mdb)};DSN='';DBQ=filename;UID=username;PWD=password"
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

685 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