Solved

Adding ODBC Entry

Posted on 2004-03-23
6
138 Views
Last Modified: 2010-04-05
How do I add an ODBC Entry (with MS Access, SQL Server driver. Or any other driver) on run time?

0
Comment
Question by:huferry
  • 2
6 Comments
 
LVL 17

Expert Comment

by:mokule
ID: 10656436
Hi
I've added it to
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI
Add first desired ODBC entries manually and look what are the appropriate key values
0
 
LVL 17

Accepted Solution

by:
mokule earned 100 total points
ID: 10656467
u must also add the name to
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
0
 
LVL 11

Expert Comment

by:calinutz
ID: 10657657
As I understand you need to create an alias on runtime.
If that's what you are looking for then you should see this. It's in delphi and has sourcecode attached.

http://www.jrsoftware.org/files/AddAlias.zip
0
 
LVL 3

Author Comment

by:huferry
ID: 10685285
I've not tried AddAlias but I read the readme, it is to add BDE entry not ODBC, right?
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

785 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