I want to execute sqlcmd command on a remote machine.
When I tried to execute
sqlcmd -I -b -r -S %server% -d %db% -U %user% -P %PASSWORD% -i '%sql_file%'
I got this error:
sqlcmd : command not found
Is there any way so that I can refer sqlcmd command from internet, as like we do for javascripts? So that it will just invoke it on the fly and execute the SQL script?
Any help will be appreciated.