Logging On Different Domain with Tableau Desktop

Logging On Different Domain with Tableau Desktop

Brad Fair
//

The Problem

As consultants, we often run into instances where we need to connect to a Microsoft SQL database as a user from another domain. Using SQL Server Management Studio fails the login because we can’t specify which domain credentials to use, just that we want to use them. Naturally, it defaults to the domain credentials of the logged on user. We run into the exact same issue with Tableau Desktop. Even if we specify “DOMAINusername” as the user, authentication fails.

I’m sure we’ve all found a workaround, such as installing Tableau on a machine that belongs to the domain, or enabling SQL Server authentication rather than Windows Authentication. There has got to be a better way.

The Better Way

A little known trick in Windows is the ability to run a program as another user. A lesser-known trick is the ability to run a program as an arbitrary user on any domain at all. Make your way to a command prompt and follow along:

  1. To make it easy on yourself, change directories to the directory where tableau.exe is located.
  2. Type in this command: runas /netonly /user:DOMAINusername tableau.exe
  3. Within the new Tableau Desktop window, connect to the database using Windows Authentication

This works with any program that passes the current user’s credentials to the data source, so it will also work with SSMS.

Happy vizzing!

Need Expert Help?

See Our Full Menu of Data Services

InterWorks uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy. Review Policy OK

×

Interworks GmbH
Ratinger Straße 9
40213 Düsseldorf
Germany
Geschäftsführer: Mel Stephenson

Kontaktaufnahme: markus@interworks.eu
Telefon: +49 (0)211 5408 5301

Amtsgericht Düsseldorf HRB 79752
UstldNr: DE 313 353 072

×

Love our blog? You should see our emails. Sign up for our newsletter!