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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

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,

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.