Computing.Net > Forums > Programming > Install ODBC

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Install ODBC

Reply to Message Icon

Name: JonHayley
Date: January 26, 2004 at 02:06:54 Pacific
OS: Windows XP Professional
CPU/Ram: 868 mhz 128 MB ram
Comment:

Instead of going into the Data Source Manager and adding a data source manually I would like to be able to use some sort of set up wizard that users can click on and it will install the relevant database into the datasource manager without me having to manually do this. Any ideas.



Sponsored Link
Ads by Google

Response Number 1
Name: MarkM
Date: January 26, 2004 at 11:04:17 Pacific
Reply:

It depends a bit on which database you are using but, if you have the relevent driver/provider installed on the client PC, then you can connect to the database from within your program using ADO (ActiveX Data Objects). If you don't know much about it then try googling for it, there's plenty of sample code out there you can use.

As far as having the correct drivers on your system, there's three main ways. For Access databases you'll need the lastest JET service pack from MS. For just about everything else you get a download called MDAC from MS. The only exceptions are Oracle and MySQL. MySQL give you a handy download similar to MS's MDAC, but Oracle make you install a full client, which does give you drivers you have to configure a fiddly client install. For this reason alone I'd stay away from Oracle using your going to use Oracle's own front end (Oracle Forms I think).

If after all that, you simply just want the DSN's and aren't interested in programming, then basically, the DSN's are just registry settings. The trick is find where in the registry. Once you've located them, you can export them as a .reg file and install on other machines. You'll still need the drivers though.

Post back if you have any questions.


0

Response Number 2
Name: kaepeekay
Date: January 27, 2004 at 05:57:39 Pacific
Reply:

When you look into the registry, you will entries under HKEY_CURRENT_USER and HEKY_LOCAL_MACHINE.
subkey-software\odbc
depending on whether it's a file or system DSN.

You can go through some of the sample dsns in the registry and you can use your program to write to the registry. Use apis to write to the registry.


0

Response Number 3
Name: JonHayley
Date: February 4, 2004 at 02:42:56 Pacific
Reply:

Thank you for your comments. I think I may be alittle out of my depth but I will have a go anyway. I have located the file in the registry but do not know how to add this file to the registry through VB6.

The file is located in: HKEY_CURRENT_USER/SOFTWARE/ODBC/ODBC.INI and then the file is there a few others.

I would appreciate any help.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Install ODBC

C# function to ODBC Drivers,WinXP www.computing.net/answers/programming/c-function-to-odbc-driverswinxp/15605.html

MySQL ODBC and VB6 www.computing.net/answers/programming/mysql-odbc-and-vb6/14683.html

How to use the ODBC connect in the VB6 ? www.computing.net/answers/programming/how-to-use-the-odbc-connect-in-the-vb6-/2483.html