[英]Adaptive Server connection failed TinyTDS::error when connecting ruby on SQL Server 2008 R2
I'm trying to connect my Rails app (rails version 4.2.5 and ruby 2.2.2) in Ubuntu(wsl) with my SQL SERVER 2008 R2 database. 我正在尝试将Ubuntu(wsl)中的Rails应用程序(rails版本4.2.5和ruby 2.2.2)与SQL SERVER 2008 R2数据库连接。
i have tried to connect it with 我试图与它连接
tsql -H mydb.database.windows.net -p 1433 -U myuser@mydb -P mypassword -D
mydb
but i getting this error message 但我收到此错误消息
Error 20017 (severity 9):
Unexpected EOF from the server
Error 20002 (severity 9):
Adaptive Server connection failed
There was a problem connecting to the server
My problem was solved 我的问题解决了
I'm using FreeTDS ver. 我正在使用FreeTDS ver。 1.0.21, testing it with tsql
on a console and it worked 1.0.21,以测试它tsql
在控制台上和它的工作
The problem is when i used tiny_tds gem on Ruby it always give same error message like before, then i know my tds version must be set to auto and everything is going well. 问题是,当我在Ruby上使用tiny_tds gem时,它总是像以前一样给出相同的错误消息,然后我知道我的tds版本必须设置为auto,并且一切都进行得很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.