I'm attempting to connect to Azure SQL Server 2017 from Debian 8 or 9. Our SQL Server instance is connected to our Active Directory requiring Active Directory Authentication.
Thus far, I've tried connecting using the Microsoft ODBC Driver in conjunction with unixODBC to no avail.
Recent attempts with FreeTDS haven't worked well either. Errors vary but typically result in server timeouts or being unable to connect to the server altogether.
Are there recommended best practices for making this connection with these constraints?
Here is the recommended connection string for the database in question:
Driver={ODBC Driver 13 for SQL Server};Server=tcp:xxxx.windows.net,1433;Database=xxxx;Uid={your_user_name};Pwd={your_password_here};Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;Authentication=ActiveDirectoryPassword
Primarily, I'm unsure about how to configure odbc.ini
,odbcinst.ini
and freetds.conf
to accommodate this connection string.
Details:
- FreeTDS Version =
7.4
- FreeTDS Protocol =
1.00.92
- MS ODBC Driver Version =
13.1