我尝试连接到 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
感谢您的任何建议。