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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
YashikaAgrawal
Post Patron
Post Patron

Connecting Power BI to SQL server

Hello Team,

 

Working on connecting Power BI to SQL server, getting the error, this is a new Power BI gateway server.

The credentails are working in the old server,

Any suggestions how to resolve this, iam attaching the screenshot.

 

Thanks,

SQL server_1.png

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@YashikaAgrawal let me ask you this. How are you connecting in Power BI Desktop?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

7 REPLIES 7
parry2k
Super User
Super User

@YashikaAgrawal let me ask you this. How are you connecting in Power BI Desktop?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

thank you for your time, its resolved.

Earlier database did not had access.

hence issue, thank you

Hi, thank you for the reply,

i have mentioned the step.

Should i download any software in the Gateway server,

 

Thanks,

sql_server_connect.png

 

parry2k
Super User
Super User

@YashikaAgrawal  In Power BI service, did you add this as a data source under manage connections and gateways?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thank you for the reply.

 

I am try new connection (On-premises), getting failed here itself.
Connection Name - xxxxx
Connection - SQL server
Server name - xxxxx
Database name - xxxxx
Authentication type - Windows
Username (DOMAIN\USERNAME)
Password xxxxx

 

Getting error "Unable to create connection for the following reason: The on-premises data gateway's service account failed to impersonate the user."

 

Thanks,

YashikaAgrawal
Post Patron
Post Patron

Hi,
Thank you for the reply.

I tried connecting from Power BI service. I got the below error .

Unable to create connection for the following reason: The on-premises data gateway's service account failed to impersonate the user.

 

I tried giving user name as domain\user.
Domain is where the Power BI gateway server is installed, is this correct?
SQL server is in different location.

 

Any suggestions please.

parry2k
Super User
Super User

@YashikaAgrawal, it seems like you are connecting from Power BI desktop, if that is the case, it will not use the gateway. Can you make sure you can connect to the SQL server using SSMS? if yes, use the same credentials here.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.