Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Incipient
Helper I
Helper I

SQL Server Auth with Windows "Alternative Auth" fails. "Run as different user" works.

If I open Power BI with "run as different user" and authenticate, then I can connect to the SQL server as expected.

 

If I use my current windows login and open powerbi normally, and then connect to the SQL server with "alternative credentials" it fails.

 

I have tried both including and excluding the domain when logging in.

 

I've looked at all of the various posts, but I couldn't find any solutions.

6 REPLIES 6
Anonymous
Not applicable

Hi @Incipient ,

 

Sorry for my late reply.

 

Based on your description, if you choose Windows authentication, the credentials should be in format of Domain\UserName who has access to your database.

But from your screenshot, it seems that you enter the credentials by Database name ,right? If so ,you may switch to Datebase authentication

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The credentials I have entered are Windows Credentials (that is why I can log in with "Run as different user"), so I have selected Windows Credentials. 

 

Incipient_0-1633347581774.png

 

Anonymous
Not applicable

Hi @Incipient ,

 

If you're unable to authenticate, make sure you select the correct authentication method and use an account with database access. In test environments, you might use Database authentication with an explicit username and password. In production environments, you typically use Windows authentication. 

 

Please provide more details like some screenshots to help us clarify your scenario.

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Please see below for a better explanation, I hope this helps.

 

This is using windows authentication, our dba has set up a dedicated 'powerbi' windows login that has access to a few different databases. This login is separate to my individual corporate login.

 

If I open the powerbi exe with "run as different user" PBI can connect to the datbase with "use my current credentials".

Incipient_1-1632877778043.png

 

If I open PBI using my individual windows logic (e.g. I double click on the exe to open it), I need to use 'alternative credentials' to connect to the databas, however it fails - see below. 

Incipient_0-1632877705913.png

 

amitchandak
Super User
Super User

@Incipient , do you have a separate database service login to log in on SQL server. That need to be enabled to allow alternate login

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

It's a separate windows account that has access to that database.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.