The IDBPromptInitialize interface allows you to display the data link dialog boxes programmatically. Using the data link user interface, users can build a connection string dynamically, or select an existing data link (.udl) file.
You can then get a data source object based on the resulting connection string or .udl file name using the IDataInitialize interface.
Call IDBPromptInitialize to prompt the user to build a connection string or to select a (.udl) file.
Method | Description |
IDBPromptInitialize::PromptDataSource | Opens the Data Link Properties dialog box. Returns a connection string. |
IDBPromptInitialize::PromptFileName | Opens the Select Data Link dialog box. Allows the user to browse and organize .udl files. Returns a fully qualified path to the user-selected .udl file. |