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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

power bi gateway data source credential vs report data source credential

Hi,

Currently I am using direct connect to my on-premises SQL server data source via Enterprise Gateway.

My understanding is that if I publish a report to Powerbi service, the report will be using the credential (Credential A) specified in the report to connect to the SQL server regardless of which users use the report. 

 

The confusion comes in is that the SQL server data source configuration under the Enterprise Gateway also needs a credential  (Credential B). I can assume this is only used for Power BI internal use.

 

Apparently for the whole things to work, both credential A and B need to have sufficient access to the SQL server. But each report hit will hit the SQL server as credential A, I assume. Could anyone please confirm / clarify this?

 

Thanks,

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@ankitpatira Another test I think I found the truth. Which is, when the report is executed on the power bi service, it turns out using the credential B to hit the database - which is the gateway's data source credential. When the report is executed on the Power BI desktop, it uses credential A to hit the database. 

I used the profiler the trace the database users, so I am confident this is the case and it makes perfect sense. Any objections?

View solution in original post

3 REPLIES 3
ankitpatira
Community Champion
Community Champion

@Anonymous Yes credentials A which are stored in cloud (ofcourse encrypted) are passed to the gateway when you access report in power bi service. In gateway on-premise they are decrypted and used to access the data source. Can you not use credential A for both gateway and report data source. 

Anonymous
Not applicable

@ankitpatira Thanks for clarifying. I assume you asked me why not use credential A for both configuration. My consideration is that for the gateway setup (credential B), the credential B should be a system account rather than user account. What if the User B leaves the company and the account is closed, the data source for the Gateway will be broken. Credential A does not have this problem because if A leaves, new user C publishing the same report will be using credential C to connect to the server. Hope this makes sense.

Anonymous
Not applicable

@ankitpatira Another test I think I found the truth. Which is, when the report is executed on the power bi service, it turns out using the credential B to hit the database - which is the gateway's data source credential. When the report is executed on the Power BI desktop, it uses credential A to hit the database. 

I used the profiler the trace the database users, so I am confident this is the case and it makes perfect sense. Any objections?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.