Connecting to Azure using FreeTDS
Needed to connect to a MSSQL Server on Azure from Linux
-
Clone git rep https://github.com/FreeTDS/freetds.git
-
./autogen.sh Need autotools
-
./configure –prefix=/usr/local
-
make
-
sudo make install
-
TDSVER=7.0 tsql -H xxxx.database.windows.net -p 1433 -U xxxx -P xxxx -Dxxxx -D is required -S does not work
Azure does not allow a connection to change databases (use database) so the database must be set at login.
If using the dblib library use the DBSETLDBNAME macro to add the database to the login before dbopen.