Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
| OLE DB Programmer's Reference |
Property group: Initialization
Property set: DBPROPSET_DBINIT
Type: VT_I2
Typical R/W: R/W
Description: Prompt
Indicates whether to prompt the user during initialization. One of the following values:
- DBPROMPT_PROMPTAlways prompt the user for initialization information.
- DBPROMPT_COMPLETEPrompt the user only if more information is needed.
- DBPROMPT_COMPLETEREQUIREDPrompt the user only if more information is needed. Do not allow the user to enter optional information.
- DBPROMPT_NOPROMPTDo not prompt the user.
Information obtained from the user during prompting is available following initialization by calling GetProperties for the appropriate initialization properties.
Providers that do not wish to build their own prompting user interface can use IDBPromptInitialize::PromptDataSource, passing in their own data source object as the value of the ppDataSource argument. Such providers are still required to support DBPROP_INIT_PROMPT but can leverage the user interface provided by OLE DB services.
1998-2001 Microsoft Corporation. All rights reserved.