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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
smmoore34
Helper III
Helper III

Adding sql database source to a gateway using a service account

I have several power bi datasets that I have added to a gateway. When I added the datasources to the gateway I used my active directory credentials.  I've set these datasets to auto refresh which works great until my password changes and then I have to go in and fix the connections with my updated password. I have created  a service acount for the datasources and want to use that since it doesn't change. When I am adding this connection to the gateway, what type of authentication method do I choose?  and what are the steps? 

smmoore34_0-1707485324303.png

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @smmoore34 ,

 

It depends on what type of credentials the source requires.

A service account is just a fake person so, if a real person (e.g. you) use Windows auth, then the Service account will use that too, same for Basic/OAuth.

Obviously you need to ensure that your service account has permissions to access the source before any of these will work.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
smmoore34
Helper III
Helper III

I was able to get in. Thank you for your response!

Anonymous
Not applicable

Hi @smmoore34 

 

If you are using SQL Server on local drive, it seems that you should choose Windows Authentication.

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

BA_Pete
Super User
Super User

Hi @smmoore34 ,

 

It depends on what type of credentials the source requires.

A service account is just a fake person so, if a real person (e.g. you) use Windows auth, then the Service account will use that too, same for Basic/OAuth.

Obviously you need to ensure that your service account has permissions to access the source before any of these will work.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.