I\'m trying to connect to SQL-Azure from Ubuntu 12.04.
I\'ve compiled freeTds-0.91 with openssl and libiconf
tsql -H XXXXXXXX.database.windows.net -U
Do with TDS 8.0 version worked for me.
Just put in /etc/freetds/freetds.conf
to stay permanent
in freetds.conf
[servername]
host = ipAddress
port = 1433
tds version = 8.0
for checking freetds connection
===============================
$tsql -S servername -U username
password
The error is caused by the use of the wrong version of TDS.
To resolve just specify the TDS version before the tsql command:
TDSVER=8.0 tsql -H XXXXXXXX.database.windows.net -U Username -D DatabaseName -p 1433 -P Password
Is your IP address whitelisted by the database server? If not, you won't be able to connect.