我尝试连接到像Azure数据库:
tsql -H XXXXXX.database.windows.net -p 1433 -U mycorrectusername
但我得到的消息
Msg 20004, Level 9, State 0, Server OpenClient, Line 0
Read from SQL server failed.
Msg 20014, Level 9, State 0, Server OpenClient, Line 0
Login incorrect.
There was a problem connecting to the server
这可能是我不能登录,因为我可以先选择数据库。 我有,当我通过网站登录。
当我尝试选择数据库,如:
tsql -H XXXXXXXXX.database.windows.net -p 1433 -U username -D databasename
但我得到的消息:
tsql: illegal option -- D
这里是TSQL的配置:
[~]$ tsql -C
Compile-time settings (established with the "configure" script):
Version: freetds v0.64
MS db-lib source compatibility: yes
Sybase binary compatibility: unknown
Thread safety: yes
iconv library: yes
TDS version: 5.0
iODBC: no
unixodbc: no
谢谢你的任何建议。