Microsoft does not provide any supported tool to allow tracing of OLE DB API calls. The Trace Provider tool that ships with the Microsoft Data Access Components (MDAC) version 2.5 Software Development Kit (SDK) is a beta tool and, due to design limitations, is not useful for tracing in the majority of typical OLE DB usage scenarios. The Trace Provider that ships with the MDAC 2.5 SDK can cause the traced program to crash; because of this instability, its use is not supported by Microsoft Product Support Services.
↑ Back to the top
ODBC provides an integrated means of tracing ODBC API calls called ODBC trace. With ODBC trace, one can perform API level tracing of calls to any ODBC driver in order to debug database related problems. OLE DB does not provide a similiar feature. In order to trace OLE DB API calls, you need a debug build of the OLE DB provider as well as the source code to the provider. Microsoft does not provide the source code or debug builds of its various OLE DB providers to the public.
↑ Back to the top
For additional information on how to use ODBC trace, click the article number below
to view the article in the Microsoft Knowledge Base:
274551�
HOWTO: Generate an ODBC Trace using ODBC Data Source Administrator
↑ Back to the top