Share via



The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at AtlTraceErrorRecords.

Dumps OLE DB Error Record information to the dump device if an error is returned.


      inline void AtlTraceErrorRecords(   
   HRESULT hrErr = S_OK    


[in] An HRESULT returned by an OLE DB Consumer Template member function.


If hErr is not S_OK, AtlTraceErrorRecords dumps OLE DB Error Record information to the dump device (the Debug tab of the Output window or a file). The Error Record information, which is obtained from the provider, includes row number, source, description, help file, context, and GUID for each error record entry. AtlTraceErrorRecords dumps this information only in debug builds. In release builds, it is an empty stub that is optimized out.


Header: atldbcli.h

See Also

Macros and Global Functions for OLE DB Consumer Templates
CDBErrorInfo Class