ODBC Driver 18.7.1.1: application crash when an older MSVC runtime is loaded

Pascal Schär 0 Reputation points
2026-11-26T16:42:18.53+00:00

After updating SQL Server Management Studio 22 from 22.11.3 to 22.12.1, an existing WhereScape RED 8.6.6.0 installation started failing whenever we attempted to create or recreate objects.

The SSMS update also installed Microsoft ODBC Driver for SQL Server 18.7.1.1; the previous driver version was 18.6.2.1. The update also installed Visual C++ Redistributable 14.52.37029. Restarting Windows did not resolve the issue.

The RED template engine reports:

com.wherescape.red.templateengine.NodeFetcherException:Fetch error: 'objectsByName.<template_name>.code':fetch: WinHttpReceiveResponse: 12030:The connection with the server was terminated abnormally

Windows Application Event Log shows that WslMetadataService.exe crashes immediately before the connection error:

Faulting application: WslMetadataService.exe, version 8.6.6.0
Faulting module: MSVCP140.dll, version 14.10.25008.0
Exception code: 0xc0000005
Fault offset: 0x0000000000018644

Local dump analysis:

  • The faulting instruction attempts to read through a null pointer in the old MSVCP140.dll bundled with RED.
  • The associated object address lies within the loaded msodbcsql18.dll image.
  • The process also had system VCRUNTIME140_1.dll 14.52.37029 loaded. A fully symbolized call stack is not yet available. Workaround: We created a separate RED repository connection using the already installed ODBC Driver 17.10.6.1. The operation works with that connection; ODBC 18.7 remains installed.

Is this a known compatibility issue between ODBC Driver 18.7.1.1 and applications that load an older application-local MSVC runtime? What would be the recommended supported fix or further diagnostic steps?

We have a full crash dump available for secure, non-public analysis, subject to our security review.

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


2 answers

Sort by: Most helpful
  1. Erland Sommarskog 138K Reputation points MVP Volunteer Moderator
    2026-11-26T18:20:16.95+00:00

    The AI response suggests a fix. I don't have the technical knowledge to assess whether this makes sense or, but I think you should try it.

    I like to point out that if you are not content with the workaround, or the fix that the AI suggests, the way to go is open a support case. Obviously, this requires that you have a support contract.

    It is not likely that you will get an answer in this forum, but possibly there might be a few posts from others who have had the same problem.

    You can also report the issue on https://feedback.azure.com/d365community/forum/04fe6ee0-3b25-ec11-b6e6-000d3a4f0da0, but this is only to let Microsoft know about the issue. Also, this site does not provide any mechanism to share information like stack dumps in a private way.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-26T16:42:40.03+00:00

    Yes. The documented issue matches this pattern.

    A native application that uses local deployment for an older Microsoft Visual C++ runtime can cause a newer Microsoft ODBC Driver for SQL Server to load that older runtime instead of the version required by the driver. Microsoft states that this version mismatch can cause failures when the application loads or uses the ODBC driver.

    For ODBC Driver 18, versions 18.0 through 18.6 required a separate Visual C++ v14 Redistributable on Windows. Starting with Driver 18.7, the driver installer includes the runtime. Driver 18.7.1.1 includes version 14.44.35211.0. Microsoft also recommends using the latest supported Visual C++ Redistributable when it is installed separately.

    That makes the most likely supported fix:

    1. Remove the application-local older Visual C++ runtime from the application directory so the process uses the supported runtime instead of the bundled older MSVCP140.dll.
    2. Keep the newer system Visual C++ Redistributable installed.
    3. Re-test with ODBC Driver 18.7.1.1 after the old local runtime is no longer being loaded.

    Important: removing or changing files in an application directory can break that application if the vendor depends on them. Coordinate this with the application vendor before changing the bundled runtime.

    Additional supported diagnostics:

    1. Verify which ODBC driver major version is registered:
         Get-OdbcDriver -Platform All |
             Where-Object { $_.Name -eq 'ODBC Driver 18 for SQL Server' }
      
      Expected result: registration for Driver 18 is present.
    2. If needed, remove and reinstall Driver 18 using the matching Windows installer, then verify registration again. Microsoft warns not to delete driver files manually.
    3. Confirm whether the crashing process is loading an application-local older MSVCP140.dll instead of the newer runtime required by the driver. The documented failure mode is specifically caused by that mismatch.
    4. Since the same workload succeeds with ODBC Driver 17, keep that as a temporary workaround while the application-local runtime conflict is corrected.

    The context does not provide a Microsoft statement about secure non-public dump analysis or a specific escalation path, so the supported conclusion from the available documentation is the runtime mismatch and correction of the older app-local Visual C++ runtime.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.