Classify network error from Microsoft OLE DB Provider for SQL Server E_FAIL(0x80004005) error

0

I'm using Microsoft OLE DB's C++ Template library to access SQL Server 2012 via the "Microsoft OLE DB Provider for SQL Server" provider.

I have ever encountered the following error:

[Error information returned from CDBErrorInfo::GetBasicErrorInfo()]

  • HRESULT: 0x80004005
  • Native Error: 11

[Error information returned from CComPtr::GetErrorInfo()]

  • Error state: 1
  • Severity: 16
  • Source: Microsoft OLE DB Provider for SQL Server
  • Error message: [DBNETLIB][ConnectionWrite(send()).]General network error. Check your network documentation.

And, My problem is:

  1. Can I classify native error "11" directly as a network connection error, so that I can reconnect and retry again right away?
  2. Where can I find the document or description about the native errors returned by the "Microsoft OLE DB Provider for SQL Server" providers? and see if there is any other case I need to retry again.
c++
sql-server
asked on Stack Overflow May 16, 2019 by Elliott • edited May 16, 2019 by Elliott

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0