将Tableau Server上的数据源连接到MSSQL服务器的要求

时间:2019-07-09 09:00:13

标签: sql-server impersonation tableau-server

这是我的问题。 我在客户的环境中安装了Tableau Server。他有一个基于MSSQL服务器的ERP。我可以使用用户“ userA”从Tableau Desktop毫无问题地连接到MSSQL,并执行任何类型的活动。如果我尝试将数据源/工作簿发布到Tableau Server,则似乎无法连接到MSSQL服务器。 我尝试了各种类型的身份验证(提示,嵌入式,模拟),但没有成功。

Tableau Server和MSSQL Server之间的连接正在进行,端口1433正常,并且之间没有防火墙。为了证明这一点,在Tableau Server上有一个.php脚本,用于查询相同的MSSQL-Server,相同的DB,相同的表以及相同的“ userA”,而我​​没有任何问题。

```{
    "ts": "2019-07-08T15:02:19.080",
    "pid": 1391,
    "tid": "7f079cc3e280",
    "sev": "warn",
    "req": "-",
    "sess": "-",
    "site": "-",
    "user": "-",
    "k": "excp",
    "v": {
        "class": "sqlserver",
        "dse-type": "UnableToConnect",
        "excp-msg": "There was an unknown connection error to the database. The error message below has additional information, but you might need to ask the database administrator to review the database logs.\n[Microsoft][ODBC Driver 17 for SQL Server]MAX_PROVS: Connection string is not valid [87]. \n[Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired\n[Microsoft][ODBC Driver 17 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.\n",
        "excp-type": "DataSourceException",
        "is-bad-request": false,
        "is-local-configuration-error": false,
        "is-remote-configuration-error": false,
        "msg": "DataSourceException::Throw"
    },
    "ctx": {
        "client-type": "dataserver",
        "procid": "31334",
        "requestID": "XSM@vH4HkW-yeIYtlkehBgAAAAA",
        "sessionid": "B4E47296423F488499A719B19EE40BAE-1:0",
        "tid": "140218824414976",
        "username": "tableauserver"
    }
}```

我已阅读以下文档,但我仍然是新手: https://onlinehelp.tableau.com/current/server/en-us/impers_requ.htm https://onlinehelp.tableau.com/current/server/en-us/impers_how.htm

我要问的是: 从Tableau Server连接到MSSQL-Server有什么要求?

  • 我还必须在MSSQL Server上创建相同的用户吗? (我不是DBA,所以我不得不问这个测试)
  • 如果上一个答案为“是”,是否必须授予MSSQL Server(拥有数据源的用户)上的“ tableauuser”(同时具有在MSSQL数据库上也具有的IMPERSONATE特权)?

感谢您的帮助 大卫(Davide)

0 个答案:

没有答案