how to fix 'sqllocaldb' is not recognized as an internal or external command, operable program or batch file.

Ricky 0 Reputation points
2025-05-20T04:16:54.0533333+00:00

Please help, how can I resolve this . I have been trying to connect to my localdb on my mssms and when i try to run it on the cmd it says this:

C:\Users\Ricky>sqllocaldb info

'sqllocaldb' is not recognized as an internal or external command,

operable program or batch file.

SQL Server Database Engine
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2025-05-20T21:48:26.0066667+00:00

    Make sure that you have C:\Program Files\Microsoft SQL Server\nnn\Tools\Binn in your path, where nnn is the version of LocalDB you have installed.

    0 comments No comments

Your answer

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