我已经安装了freetds,当我尝试通过主机连接时,它看起来工作正常:
tsql -H myhost -U myuser -P mypass -p 1433
locale is "C/UTF-8/C/C/C/C"
locale charset is "UTF-8"
using default charset "UTF-8"
1>
Run Code Online (Sandbox Code Playgroud)
我已经配置了freetds.conf:
[azure]
host = myhost
port = 1433
tds version = 7.0
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试通过服务器名称(azure)进行连接时,它会失败:
tsql -S azure -U myuser -P mypass
locale is "C/UTF-8/C/C/C/C"
locale charset is "UTF-8"
using default charset "UTF-8"
Msg 40532 (severity 20, state 1) from azure:
"Cannot open server "azure" requested by the login. The login failed."
Error 20002 (severity 9):
Adaptive Server connection failed …Run Code Online (Sandbox Code Playgroud)