Additional SQL Server features and topics not covered by specific categories
Reload the environment variables
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
when I run these below commands one after another in a same powershell window , we are getting below error.
And it is working when we run the second command in a new powershell window.
step 1: MsiExec.exe /i SqlLocalDB.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qn | Out-Null
step 2: sqlocaldb info
error : sqllocaldb : The term 'sqllocaldb' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
Any help would be appreciated to run these command in the same batch :)
Additional SQL Server features and topics not covered by specific categories
Reload the environment variables
Hi @Manjunath ,
You can first try to see if you can find SqlLocalDB in C:\Program Files\Microsoft SQL Server\nnn\Tools\Binn (by default).
Please find where it is in your system and try to open the command line at this loaction, and run this command to add that location to your PATH
use 'cd' command in CMD and use SqlLocalDB.exe in this dictionary.
-------------
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Have you made sure that the location for sqllocaldb is in your PATH? It does not seem like that.