03 December 2022 SqlLocalDb Robert Muehsig

Short Intro

SqlLocalDb is a “developer” SQL server, without the “full” SQL Server (Express) installation. If you just develop on your machine and don’t want to run a “full blown” SQL Server, this is the tooling that you might need.

From the Microsoft Docs:

Microsoft SQL Server Express LocalDB is a feature of SQL Server Express targeted to developers. It is available on SQL Server Express with Advanced Services.

LocalDB installation copies a minimal set of files necessary to start the SQL Server Database Engine. Once LocalDB is installed, you can initiate a connection using a special connection string. When connecting, the necessary SQL Server infrastructure is automatically created and started, enabling the application to use the database without complex configuration tasks. Developer Tools can provide developers with a SQL Server Database Engine that lets them write and test Transact-SQL code without having to manage a full server instance of SQL Server.


(I’m not really sure, how I ended up on this problem, but I after I solved the problem I did it on my “To Blog”-bucket list)

From time to time there is a new SQLLocalDb version, but to upgrade an existing installation is a bit “weird”.


If you have installed an older SQLLocalDb version you can manage it via sqllocaldb. If you want to update you must delete the “current” MSSQLLocalDB in the first place.

To to this use:

sqllocaldb stop MSSQLLocalDB
sqllocaldb delete MSSQLLocalDB

Then download the newest version from Microsoft. If you choose “Download Media” you should see something like this:


Download it, run it and restart your PC, after that you should be able to connect to the SQLLocalDb.

We solved this issue with help of this blogpost.

Hope this helps! (and I can remove it now from my bucket list \o/ )

Written by Robert Muehsig

Software Developer - from Saxony, Germany - working on primedocs.io. Microsoft MVP & Web Geek.
Other Projects: KnowYourStack.com | ExpensiveMeeting | EinKofferVollerReisen.de