Microsoft SQL server connectivity issue with tableau server

Mayra Arango 1 Reputation point
2022-12-02T00:45:02.937+00:00

I'm having trouble connecting the data sources from SSMS to Tableau server. I can connect the SQL server to Tableau Desktop, but when I try to connect the data sources published to the tableau server from the SQL server, I get the errors below. This is not allowing the refresh of the Tableau reports.

266269-image.png

266289-image.png

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,345 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,134 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,345 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. YufeiShao-msft 7,126 Reputation points
    2022-12-02T07:30:53.003+00:00

    Hi @Mayra Arango

    It may be more about not having enough permissions
    Please make sure the user you used is added as database server user, this user can connect by SSMS directly, please change the run as user account to a domain account that as access to the SQL Server database, and you can try to change the data connection so that it uses SQL authentication and embedded password, if the Run As user is a local machine account and it does not have access to the SQL Server database

    Please check out this doc:
    https://kb.tableau.com/articles/issue/sql-extract-refresh-fails-with-login-failed-for-user

    https://learn.microsoft.com/en-us/troubleshoot/sql/connect/login-failed-for-user#login-failed-for-user-username-or-login-failed-for-user-domainusername

    -------------

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Erland Sommarskog 113.3K Reputation points MVP
    2022-12-02T22:45:47.5+00:00

    First, I know nothing about Tableau. (And Tableau is far as I know not a Microsoft product.)

    But the error message says that access fails for DOMAIN\MACHINE$. Note the dollar at the end. This means that the access is by the machine account. This happens when you are logged in with a local account and try to connect to SQL Server running on a different machine with Windows authentication.

    In this particular case, you are not logged in yourself, but apparently the login comes from the Tableau server which has been set up run with a local account like NT Service\Tableau$Service of NetworkService or similar.

    You could solve this by granting access to the machine account (the one in the error message), but it is not really fantastic for security. It may be better to create a domain account for Tableau and use that as the service account for Tableau.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.