Solved

HOWTO: Set Up ODBC Data Sources When Distributing Apps

Posted on 2001-06-10
2
248 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
  • 2
2 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 20 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 69

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to skip loop 6 54
A macro to Count the number of rows across all worksheets 3 78
Windows Script Host failed (Access is denied.) error 6 100
TT Auto Dashboard 13 79
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

932 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