简体   繁体   English

SQL 来自 Excel 的服务器连接

[英]SQL Server connection from Excel

I am trying to connect to a SQL Server 2016 database from Excel (Office 365).我正在尝试从 Excel(Office 365)连接到 SQL Server 2016 数据库。

First of all:首先:

  • I can ping the SQL Server from my PC我可以从我的 PC ping SQL 服务器
  • I can telnet SQL Server 1433我可以远程登录 SQL 服务器 1433
  • I can connect to the SQL Server with a SQL Server account我可以使用 SQL 服务器帐户连接到 SQL 服务器
  • I got the credential popup when I connect from Excel (tried with domain account and SQL Server account).当我从 Excel 连接(尝试使用域帐户和 SQL 服务器帐户)时,我得到了凭据弹出窗口。
  • There is no firewall restriction between client and server.客户端和服务器之间没有防火墙限制。

But finally I got this error message:但最后我收到了这个错误信息:

在此处输入图像描述

Where should I check?我应该在哪里检查?

Well, i'm using IP adress instead of server name and it is working.好吧,我使用的是 IP 地址而不是服务器名称,它正在工作。 So it should be a DNS issue.所以应该是 DNS 问题。

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

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