I am thinking about adding ODBC database connectivity to an application.
The user will at runtime configure and select their database odbc connection.
Are there any components that will give me the required series of dialogs ?
Allowing the user to select the data source type, select drivers, browse already defined ODBC connections etc.
Cheers Sam
PromptDataSource Function from the ADODB unit. Two parameters are required:
a connection string . If you want no default connection string just pass an empty string as:
var sConn : WideString; begin sConn := PromptDataSource(Form1.Handle, ''); end;
You can try this, if you are using ADO components.
Option 1
Option 2
Option 3
You must Select "Microsoft OLE DB Provider for ODBC Drivers"
Bye.