We are excited to announce the availability of the ODBC Driver 13.1 for macOS – Preview. The preview release adds support for macOS El Capitan 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.
Install the ODBC Driver for macOS El Capitan
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew tap microsoft/msodbcsql https://github.com/Microsoft/homebrew-msodbcsql-preview brew update brew install msodbcsql #for silent install ACCEPT_EULA=y brew install 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 ./sample_c_linux
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 if you use unixODBC or iODBC on macOS.
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 (email@example.com)