?
Solved

Adding ODBC Entry

Posted on 2004-03-23
6
Medium Priority
?
143 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 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