Select ODBC DSN

  • Thread starter Thread starter KG Kristinsson
  • Start date Start date
K

KG Kristinsson

I am creating an application that uses DSN connection
string to connect to a database (using ado or ole db). I
like to allow the user to select already created DSN. I
found out how to allow the user to create DSN (KB310083)
but that is not what I want.

Thank in advance
kkristinsson
 
kkristinsson,

First, you should be using the classes in the System.Data.Odbc namespace
to access Odbc data.

To bring up a dialog to select an ODBC data source, you should be able
to use the SQLBrowseConnect unmanaged function through the P/Invoke layer.

Hope this helps.
 
Back
Top