Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install MSSQL Tools including ODBC driver, bulk copy program ( BCP ) and SQLCMD to an Ubuntu 16.04 machine
sudo su <<HERE
curl | sudo apt-key add -
curl > /etc/apt/sources.list.d/mssql-release.list
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install --yes msodbcsql
sudo ACCEPT_EULA=Y apt-get install --yes unixodbc-dev
sudo apt-get install --yes mssql-tools unixodbc-dev
echo -e '\nexport PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
echo -e '\nexport PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.