简体   繁体   English

FreeTDS无法通过SQL Server Express 2016进行身份验证

[英]FreeTDS unale to authenticate with SQL Server Express 2016

This is a bizarre one I spent most of yesterday on. 这是我昨天花在大部分时间里的一个奇怪的事情。

I have a PC. 我有一台电脑。 It has SQL Server Express running successfully on a fresh, clean Windows 8.1. 它使SQL Server Express在一个干净,干净的Windows 8.1上成功运行。 SSMS and all the Windows tools work fine. SSMS和所有Windows工具都可以正常工作。 I've even talked to it via ODBC with perl and restored a backup so I have data. 我甚至通过ODBC与perl交谈,并恢复了备份,所以我有数据。

I have a VMWare VM running Ubuntu 16. It has FreeTDS installed on it. 我有一台运行Ubuntu 16的VMWare VM。它上面安装了FreeTDS。 I can telnet to port 1433 on the PC side happily. 我可以愉快地telnet到PC端的1433端口。

I have a recent FreeTDS (v1.00.9) compiled and installed. 我最近编译并安装了FreeTDS(v1.00.9)。 My ~/.freetds.conf simply has: 我的〜/ .freetds.conf只有:

[global]
        dump file = /tmp/freetds1.log
[lsql]
        host = 192.168.1.107
        port = 1433
        tds version = 8.0

Doing a: 做一个:

TDSVER=7.1 tsql -H 192.168.1.107 -p 1433 -U daveh -P password -I ~/.freetds.conf 

(Or 8.0, which I've seen used) gives me: (或者我见过的8.0)给了我:

locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
Msg 18452 (severity 14, state 1) from WINDOWS-AECP4ER\SQLEXPRESS Line 1:
    "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication."
Error 20002 (severity 9):
    Adaptive Server connection failed
There was a problem connecting to the server

I've tried this with my Windows user and SQL Server users with the same result. 我已经尝试过与我的Windows用户和SQL Server用户相同的结果。 I've played around with the SQL Server user permissions to no avail. 我玩过SQL Server用户权限无济于事。

What am I mising? 我在做什么?

Thanks! 谢谢!

Turns out I needed a SQL Server login. 结果我需要一个SQL Server登录。

Created one and it's fine. 创建了一个,没关系。 On to ODBC now. 现在转到ODBC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM