Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install MSSQL Tools including ODBC driver, bulk copy program ( BCP ) and SQLCMD to an Ubuntu 16.04 machine
#!/bin/bash
sudo su <<HERE
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
HERE
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.