• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

Adding ODBC Entry

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

0
huferry
Asked:
huferry
  • 2
1 Solution
 
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
 
mokuleCommented:
u must also add the name to
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now