Partager via


IDBPromptInitialize

The IDBPromptInitialize interface allows the display of 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.

A data source object can then be obtained based on the resulting connection string or .udl file name using the IDataInitialize interface.

For more information, see Creating Data Source Objects.

When to Call

Call IDBPromptInitialize to prompt the user to create an uninitialized data source object with specified properties set or to select a (.udl) file.

IDBPromptInitialize Methods

Method

Description

IDBPromptInitialize::PromptDataSource

Opens the Data Link Properties dialog box. Returns an uninitialized data source object with the specified properties set.

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.