Application crashed on MS SQL ODBC driver

Repkin Dmitry 11 Reputation points
2021-06-22T12:22:24.777+00:00

We have an application that communicate with MS SQL Server.

The issue appeared in case of communication failure. We are trying to recover connection but application crashed in MS ODBC driver code:

Stack trace:

> msvcr120.dll!abort() Line 88 C
msvcr120.dll!_purecall() Line 59 C
msodbcsql13.dll!ConnectionRecoveryManager::Recover(void) Unknown
msodbcsql13.dll!ConnectionRecoveryManager::RecoverThreadRoutine(void *) Unknown
ntdll.dll!RtlpTpWorkCallback() Unknown
ntdll.dll!TppWorkerThread() Unknown
kernel32.dll!BaseThreadInitThunk() Unknown
ntdll.dll!RtlUserThreadStart() Unknown

How to resolve this issue?

SQL driver version: 2017.0140.1000.169

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,808 questions
{count} votes

2 answers

Sort by: Most helpful
  1. CathyJi-MSFT 21,096 Reputation points Microsoft Vendor
    2021-06-23T02:47:41.223+00:00

    Hi @Repkin Dmitry ,

    Please share us the error message from the SQL server error log for analysis.

    What is the SQL server version? Please using select @@version to check this.


  2. Erland Sommarskog 101.8K Reputation points MVP
    2021-06-26T18:49:11.65+00:00

    I think I've found the solution for you. I believe that this problem can be solved with connection resiliency. Take a look here:
    https://learn.microsoft.com/en-us/sql/connect/odbc/windows/connection-resiliency-in-the-windows-odbc-driver?view=sql-server-ver15

    I have not checked in which version of the ODBC driver this was implemented, so you may have to upgrade.

    0 comments No comments