Jump to content

ODBC list selection


Zoomba
 Share

Recommended Posts

Hello all

I'm trying to get the System DSN's list (from ODBC) into a combo dialog

As the user I want to select the DSN he wants and click OK -> which will result in an output for my script

Was hoping som1 already has a piece of code that does something like that :D

Thanx :D

Link to comment
Share on other sites

Hello all

I'm trying to get the System DSN's list (from ODBC) into a combo dialog

As the user I want to select the DSN he wants and click OK -> which will result in an output for my script

Was hoping som1 already has a piece of code that does something like that :D

Thanx :D

Hi,

not a piece of code, but i think easy to start with.

You have to read values from registry. Have a look at functions RegEnumVal, RegRead and _GuiCtrlComboBoxAddString.

The System DSN are stored in HKLM\Software\ODBC\ODBC.INI\ODBC Data Sources.

If you have problems come back and may post some code.

;-))

Stefan

Edited by 99ojo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...