Share via

SQL Server 2025 LocalDb installation is missing components

Duncan Smart 0 Reputation points
2025-12-09T15:15:18.17+00:00

According to https://learn.microsoft.com/en-us/sql/sql-server/editions-and-components-of-sql-server-2025 - "SQL Server Express LocalDB is a lightweight version of Express edition that has all its programmability features"

Therefore I would expect to be able to use SQL Server 2025 features such as REGEXP functions and the vector column type. But using either of these features causes the SQL LocalDb process (C:\Program Files\Microsoft SQL Server\170\LocalDB\Binn\sqlservr.exe) to crash.

For example - connect to a LocalDB instance and execute a simple regexp_replace:

C:\>sqllocaldb start mssqllocaldb
LocalDB instance "MSSQLLocalDb" started.

C:\>sqllocaldb info mssqllocaldb
Name:               MSSQLLocalDb
Version:            17.0.1000.7
Shared name:
Owner:              MY-PC\MyUser
Auto-create:        Yes
State:              Running
Last start time:    09/12/2025 2:52:37 PM
Instance pipe name: np:\\.\pipe\LOCALDB#BAE68F2C\tsql\query

C:\>sqlcmd -S "np:\\.\pipe\LOCALDB#BAE68F2C\tsql\query"

1> select @@version
2> go
------------------------------------------------------------------------------
Microsoft SQL Server 2025 (RTM) - 17.0.1000.7 (X64)
        Oct 21 2025 12:05:57
        Copyright (C) 2025 Microsoft Corporation
        Express Edition (64-bit) on Windows 10 Pro 10.0 <X64> (Build 26200: )
(1 rows affected)

1> select regexp_replace('the cat sat on the mat','cat','dog')
2> go
Named Pipes Provider: The pipe has been ended.
Communication link failure

In the C:\Users\username\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDb\error.log is the following:

2025-12-09 15:02:52.91 spid78      *
2025-12-09 15:02:52.91 spid78      * BEGIN STACK DUMP:
2025-12-09 15:02:52.91 spid78      *   12/09/25 15:02:52 spid 78
2025-12-09 15:02:52.91 spid78      *
2025-12-09 15:02:52.91 spid78      *
2025-12-09 15:02:52.91 spid78      *   Exception Address = <frame id="00" address="0x7FFA5DF380DA" pdb="kernelbase.pdb" age="1" guid="8314490F-9967-05E2-CF4A-8DF59DF277DB" module="kernelbase" rva="0xC80DA" />
2025-12-09 15:02:52.91 spid78      *   Exception Code    = c06d007e EXCEPTION_MOD_NOT_FOUND
2025-12-09 15:02:52.91 spid78      *   Delay load failure occurred for module 'RegExpr.dll' (Error: The specified module could not be found.)
2025-12-09 15:02:52.91 spid78      * Input Buffer 144 bytes -
2025-12-09 15:02:52.91 spid78      *             select regexp_replace('the cat sat on the mat','cat','dog')  
2025-12-09 15:02:52.91 spid78      *  

That shows RegExpr.dll is missing.

If you copy RegExpr.dll from a SQL Express install (e.g.
from C:\Program Files\Microsoft SQL Server*MSSQL17.MSSQLSERVER\MSSQL\Binn*
to C:\Program Files\Microsoft SQL Server*170\LocalDB\Binn*) - it works!

Similar issue if you try to define a column as the vector type - it crashes complaining vectorffi.dll is missing - copying it across fixes the issue.

This has been reproduced on a number of machines so appears to be an issue with SQLLOCALDB.MSI missing the correct files.

SQL Server Database Engine
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 133.1K Reputation points MVP Volunteer Moderator
    2026-03-12T21:01:35.91+00:00

    This has been fixed in Cumulative Update 3 for SQL 2025. The original installation file for LocalDB is unchanged, but when you apply CU3, the missing DLLs will be added.

    0 comments No comments

  2. Akhil Gajavelly 1,570 Reputation points Microsoft External Staff Moderator
    2026-01-05T09:11:46.87+00:00

    Hi @Duncan Smart ,

    This is a confirmed product packaging issue in SQL Server 2025 LocalDB.

    The SQL Server 2025 LocalDB installer (SQLLOCALDB.msi) does not include required native binaries for new 2025 engine features such as:

    • REGEXP_* functions (RegExpr.dll)
    • VECTOR data type (vectorffi.dll)

    As a result, invoking these features causes sqlservr.exe to crash with EXCEPTION_MOD_NOT_FOUND. This is not a configuration or usage problem.

    Although documentation states that LocalDB has “all programmability features,” SQL Server 2025 LocalDB is currently incomplete.

    Supported workaround (only safe options):

    • Use SQL Server 2025 Express (non-LocalDB), or
    • Use Developer / Standard edition for development and testing

    Manually copying DLLs from another instance may appear to work but is unsupported and not recommended.

    This has been escalated internally and requires a fixed LocalDB installer or CU from Microsoft.

    Until then, SQL Server 2025 LocalDB should not be used to test REGEXP or VECTOR features.

    Thanks,
    Akhil.


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.