Logging On Different Domain with Tableau Desktop

Data

Logging On Different Domain with Tableau Desktop

by 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!

More About the Author

Brad Fair

Solutions Architect
Webcast Friday: Tableau Server Performance Monitoring On the second ever Webcast Friday that InterWorks has produced, I had the honor of speaking to our web audience about Tableau Server ...
The Desktop User’s Guide to Tableau Server Are you a Tableau Desktop user who is new to Tableau Server? Do you find yourself confounded by all of the thingamajigs and whatsits, ...

See more from this author →

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!