简体   繁体   English

访问目标数据源时遇到 SqlException

[英]SqlException encountered while accessing the target data source

Unable to create data source.The analysis request operation is timed out before it was completed.无法创建数据源。分析请求操作在完成之前超时。

Details: Gd Server 80: Received error payload from gateway service with ID 67805: SqlException encountered while accessing the target data source详细信息:Gd 服务器 80:从 ID 为 67805 的网关服务接收到错误有效负载:访问目标数据源时遇到 SqlException

Status Code: 400状态码:400

I am trying to setup Data Gateway on my On Premises Windows Server with SQL Server 2014 installed running on Port 9003我正在尝试在我的本地 Windows 服务器上设置数据网关,其中 SQL 服务器 2014 安装在端口 9003 上运行

The Latest Data Gateway installed (downloaded 14th Sep 2022) in standard mode is running fine as we can see it appearing on Power BI Service在标准模式下安装的最新数据网关(2022 年 9 月 14 日下载)运行良好,我们可以看到它出现在 Power BI 服务上

In Power BI Desktop the query timeout is set to 200 and the data is only a few KBs在 Power BI Desktop 中,查询超时设置为 200,数据只有几 KB

Now, whenever we try to add credentials using "Basic" method for data source and provide the respective database's credentials, it gives us below error (image attached) - Not sure exactly why it happening but below 2 things to be noted现在,每当我们尝试使用“基本”方法为数据源添加凭据并提供相应数据库的凭据时,它都会给我们以下错误(附图片) - 不知道发生这种情况的确切原因,但需要注意以下两点

  • If we give incorrect password it returns the same error - means the error is returned even before the authentication如果我们提供不正确的密码,它会返回相同的错误 - 意味着即使在身份验证之前也会返回错误

  • If we give incorrect server IP then it returns a different error "a如果我们给不正确的服务器 IP 那么它返回一个不同的错误“a
    network related or instance specific error occurred..." - means the发生网络相关或实例特定错误...” - 表示
    PBi Service is able to access the server when given the correct PBi 服务在正确的情况下能够访问服务器
    IP,port IP,端口

I am able to connect the same IP,Port through Power BI Desktop and SSMS我可以通过 Power BI Desktop 和 SSMS 连接相同的 IP、端口

在此处输入图像描述

This has been resolved - It was actually a Network Issue pertains to NAT Loopback.这已解决 - 这实际上是与 NAT 环回有关的网络问题。

The network I have been working on does not support NAT Loopback - Data Gateway and SQL Server was installed on same network servers and I have been trying to connect the Data Gateway with SQL Server using Public IP rather than local IP - As I mentioned NAT Loopback was not enabled therefore Data Gateway was not able to access the SQL Server with Public IP. The network I have been working on does not support NAT Loopback - Data Gateway and SQL Server was installed on same network servers and I have been trying to connect the Data Gateway with SQL Server using Public IP rather than local IP - As I mentioned NAT Loopback未启用,因此数据网关无法使用公共 IP 访问 SQL 服务器。 When it was setup using local IP, it worked当它使用本地 IP 设置时,它工作

Moreover, It is working with Personal Gateway too此外,它也适用于个人网关

在此处输入图像描述

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

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