Solved

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

Posted on 2003-11-04
2
279 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

707 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

12 Experts available now in Live!

Get 1:1 Help Now