Adding ODBC Entry

How do I add an ODBC Entry (with MS Access, SQL Server driver. Or any other driver) on run time?

LVL 3
huferryAsked:
Who is Participating?
 
mokuleConnect With a Mentor Commented:
u must also add the name to
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
0
 
mokuleCommented:
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
 
calinutzCommented:
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
 
huferryAuthor Commented:
I've not tried AddAlias but I read the readme, it is to add BDE entry not ODBC, right?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.