microsoft / mssql-scripter

Repository for the new SQL cross-platform command line tools
Other
740 stars 148 forks source link

'mssql-scripter' is not recognized as an internal or external command #210

Open Marmoulak opened 5 years ago

Marmoulak commented 5 years ago

Hi I am trying to run mssql-scripter from sql job agent and I get this error: 'mssql-scripter' is not recognized as an internal or external command, operable program or batch file.

I do not get any error when I run the bat file directly.

Can any one help?

regard

MrMeemus commented 5 years ago

@Marmoulak , The file may not be added to the path as expected .Can you try updating the path variable to mssql-scripter's path and let me know how it goes.

Thanks!

TariqHajeer commented 3 years ago

@MrMeemus it's work thanks

bbct commented 3 years ago

When I executed pip install on Windows from a command prompt that was NOT running at administrator privilege, it did the same to me, put the bat file somewhere under my personal Users folder.

On another machine I was more careful to do the install from an administrative prompt, and the location where it was installed apparently was already in the path. Immediately after installing it I could run the command. Hope this helps.

diehlmitchell commented 2 years ago

all the fixes for path didnt really work for me, if these options dont work for you try deleting the site package mssql-scripter manaully and re-run install making sure to run as admin