Solved

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

Posted on 2003-11-04
2
292 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
[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 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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…
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…
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.

622 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