The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
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 );
HRESULT returned by an OLE DB Consumer Template member function.
hErr is not
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.