Solved

Adding ODBC Entry

Posted on 2004-03-23
6
137 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

19 Experts available now in Live!

Get 1:1 Help Now