?
Solved

HOWTO: Set Up ODBC Data Sources When Distributing Apps

Posted on 2001-06-10
2
Medium Priority
?
255 Views
Last Modified: 2010-05-18
I looked that information in MSDN April Edition 2001. Though I found an article which is available on the following URL

http://support.microsoft.com/support/kb/articles/Q123/0/08.ASP

The problem is that this article is applicable only to VB 3 and 4. The information it gives us does not seem to be applicable to VB6 because the lables and the code segments it discuss are not found in VB 6.

I want to add the capability in my application to make it 's own DSN without any user interuption. Can I make the appropriate changes in the Setup1 Project which is shipped with VB. To meet those requirements what changes should be made?

Though right now I have found temporary solution which is available on the following URL
http://support.microsoft.com/support/kb/articles/q184/6/08.asp

in whic it is told HOWTO: Programmatically Create a DSN for SQL Server with VB.But I want that this thing should be done during setup of teh application.

Best Regards
Shehzad Munir.
0
Comment
Question by:ShehzadMunir
[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
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 60 total points
ID: 6173352
You can modify and recompile Setup1.vbp project (this is the application that installs the application on other PC). But what I suggest is to create the DSN every time you start the application. This way, there won't be any mess with the DSN (user modifying / deleting it).
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6177012
Will give that one to me too?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month12 days, left to enroll

752 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