Whenever I run sqlcmd
I get "command not found"
sqlcmd -S localhost -U SA -P '<YourPassword>'
sqlcmd: command not found
How can I resolve that?
sql serversql-server-2017Ubuntu
Whenever I run sqlcmd
I get "command not found"
sqlcmd -S localhost -U SA -P '<YourPassword>'
sqlcmd: command not found
How can I resolve that?
Best Answer
There are two methods of resolving this.
PATH
.User-specific Method
You can use the tutorial's recommended method. The tutorial states the following:
This works, but it only affects that user's sessions, and only if they use bash.
System-wide Method
Link the MS SQL tools into a location accessible to all users:
This could be in their
postinst
script, which would make sense for installing an optional package.Both methods are compliant with the File system Hierarchy Standard, which states: