The information in this article applies to:
SUMMARYThis article demonstrates how to use ATL OLE DB Consumer Classes for passing multiple DBPROPSETs to CDataSource::Open. It also shows how to use provider-specific properties of the SQLOLEDB provider because this represents a good example of when you would want to use multiple property sets. MORE INFORMATIONSample Code
To see the complete connection string including the extended properties,
drag the address of the BSTR and drop it in the debugger's memory window.NOTE: there is an error in the online Help for CDataSource::Open. It does not show the third parameter, the number of DBPROPSETs. NOTE: SQLOLEDB.h is not installed by Visual C++, version 6.0. The following article in the Microsoft Knowledge Base shows how to get the header file: Q190725 FILE: SqlOleDb.h Not Installed by VC++ 6.0 REFERENCESThe following article in the Microsoft Knowledge Base describes the requirements to add OLE DB template support to Visual C++ projects: Q190959 PRB: OLE DB Consumer Template Wizard Requires ATL Project Additional query words:
Keywords : kbOLEDB kbSQLServ kbVC600 |
Last Reviewed: August 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |