ODBC Driver 13.1 for Mac Preview 2 Released

Hi all,

We are excited to announce the availability of the second preview for ODBC Driver 13.1 for Mac. The preview release adds support for macOS Sierra with unixODBC Driver Manager and and enables access to SQL Server, Azure SQL Database and Azure SQL Data Warehouse from any C/C++ application on Linux. 

What's new

  • Support for mac OS Sierra

Install the ODBC Driver for macOS El Capitan and Sierra

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap microsoft/msodbcsql https://github.com/Microsoft/homebrew-mssql-preview
brew update
brew install --no-sandbox msodbcsql
#for silent install ACCEPT_EULA=y brew install --no-sandbox msodbcsql

Try our Sample

Once you install the driver that runs on a supported Linux distro, you can use this C sample to connect to SQL Server/Azure SQL DB/Azure SQL DW. To download the sample and get started, follow these steps:

wget "https://raw.githubusercontent.com/Microsoft/sql-server-samples/master/samples/tutorials/c/linux/sample_c_linux.c"
gcc sample_c_linux.c -o sample_c_linux -lodbc -w #make sure you change the servername, username and password in the connections string

Please file bugs/questions/issues on our Issues page. We welcome contributions/questions/issues of any kind. Happy programming!

Survey and Future Plans

Please take this survey to help us understand how we are doing.

Going forward we plan to improve test coverage,  fix bugs reported on our Issues page and add feature support for Always Encrypted, Transparent Network IP Resolution and Bulk Copy Support. Stay tuned for upcoming releases that will have additional feature support and bug fixes.

Meet Bhagdev (meetb@microsoft.com)


Comments (2)

  1. Thomas Flatley says:

    Hello, since I am unable to submit feedback for an error I will post it here –
    brew install msodbcsql fails with

    ==> odbcinst -i -d -f ./odbcinst.ini
    Last 15 lines from Library/Logs/Homebrew/msodbcsql/02.odbcinst.ini:
    2017-08-02 10:56:03 -0700

    odbcinst -i -d -f ./odbcinst.ini

    odbcinst: SQLInstallDriverEx failed with Invalid install path.

    1. Meet Bhagdev says:

      Hello Thomas, this is because the latest version of homebrew doesn’t support sandbox installs. We have a fix for this. Check out this issue: https://github.com/Microsoft/homebrew-mssql-release/issues/1

Skip to main content