Fixed use of XADTC with Azure SQL Managed Instance.Fixed issue with Active Directory Interactive login where attempting to login after closing the window of the first failure would automatically succeed if cached credentials were available.Fixed UI issues where text was cut off and position of items was off.BREAKING CHANGE - Changed certificate validation behavior to validate when encryption is negotiated from either the client or the server side, not just the client side.BREAKING CHANGE - Default Encrypt to Yes/Mandatory.Compatibility extensions for SQLGetData.Ability to send long types as max types.Version 18.0 brings several changes, new features, and fixes to the driver.
In some cases, you must manually locate and install these dependencies.įor RPM packages, you can inspect the required dependencies with the following commands: rpm -qpR msodbcsql-.Version 18.0 of the Microsoft ODBC Driver 18 for SQL Server has been released. Resolve missing dependencies: You might have missing dependencies at this point. If you get any dependency errors, ignore them until the next step. Install the and packages: Install the mssql-tools and msodbc packages. If you used a different machine to download the packages, one way to move the packages to your Linux machine is with the scp command.
Move the downloaded packages to your Linux machine. The location of the msodbcsql packages are listed in the following table: Linux distribution The msodbcsql package also has a dependency on either unixODBC-devel (Red Hat and SLES) or unixodbc-dev (Ubuntu).
This is only for the offline scenario.įirst, locate and copy the mssql-tools package for your Linux distribution: Linux distributionĪlso locate and copy the msodbcsql package, which is a dependency. If you successfully installed with the steps in the previous sections, you do not need to download or manually install the package(s) below. These packages are located in the Microsoft repository. If your Linux machine does not have access to the online repositories used in the previous sections, you can download the package files directly.
An example final command as part of installation on an Ubuntu-based image is: sudo ACCEPT_EULA=Y apt-get install mssql-tools unixodbc-dev If you are creating a container with the SQL Server command-line tools, it is recommended to add ACCEPT_EULA=Y to the installation command to silently accept the EULA and not interupt image creation. If you attach to a running container with an interactive bash shell, you can run the tools locally. If you run SQL Server in a Docker container, the SQL Server command-line tools are already included in the SQL Server Linux container image.
#HOMEBREW_NO_ENV_FILTERING=1 ACCEPT_EULA=y brew install mssql-tools
To install the tools for Mac El Capitan and Sierra, use the following commands: # brew untap microsoft/mssql-preview if you installed the preview version Install Homebrew if you don't have it already: For more information, see the announcement.
To update to the latest version of mssql-tools run the following commands: sudo zypper refreshĪ preview of sqlcmd and bcp is now available on macOS. sudo zypper install mssql-tools unixODBC-devel Install mssql-tools with the unixODBC developer package. Sudo zypper -gpg-auto-import-keys refresh Use the following steps to install the mssql-tools on SUSE Linux Enterprise Server.Īdd the Microsoft SQL Server repository to Zypper. To make sqlcmd/bcp accessible from the bash shell for interactive/non-login sessions, modify the PATH in the ~/.bashrc file with the following command: echo 'export PATH="$PATH:/opt/mssql-tools/bin"' > ~/.bashrc To make sqlcmd/bcp accessible from the bash shell for login sessions, modify your PATH in the ~/.bash_profile file with the following command: echo 'export PATH="$PATH:/opt/mssql-tools/bin"' > ~/.bash_profile Optional: Add /opt/mssql-tools/bin/ to your PATH environment variable in a bash shell. To update to the latest version of mssql-tools run the following commands: sudo apt-get update