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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
isa2003
Frequent Visitor

Error connecting to SQL Server from Power BI Desktop

Hello:

 

I have access to my employer's SQL Server through SQL Server Management Studio from PBI Desktop.  

 

I attempted to use the same login credentials in Power BI to access the SQL Server but ran into the following error.  Any guidance would be much appreciated.  Thanks in advance.  

 image (1).png

 

 

1 ACCEPTED SOLUTION

Here are a couple of steps to troubleshoot:

 

  1. Check SQL Server Authentication Mode:

    • Ensure that your SQL Server is configured to allow both Windows Authentication and SQL Server Authentication.
    • You can verify this in SQL Server Management Studio (SSMS) by right-clicking the server, selecting Properties, and checking the “Security” section.
  2. Verify User Permissions:

    • Confirm that the login you’re using has the necessary permissions to access the database.
    • In SSMS, navigate to the database, right-click, and choose “Properties.” Under “Permissions,” check if the login has the required access.
  3. Test Connection Outside Power BI:

    • Use SSMS or another tool to test the connection directly to the SQL Server.
    • If you encounter the same issue, it might be related to SQL Server configuration or network settings.
  4. Check Network Connectivity:

    • Ensure that the SQL Server is reachable from your machine.
    • Ping the server or try connecting using telnet to verify network connectivity.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

7 REPLIES 7
isa2003
Frequent Visitor

Hi @Kaviraj11 

I am signed into PBI using Windows Authentication.  Thanks

@Kaviraj11 I don't get to that screen.

The screenshot shows what pops up when I choose SQL Server option under Get data.  When I enter the login info and hit OK, it gives the error I shared earlier. 

Thanks

isa2003_1-1722613526451.png

 

 

 

Are you putting only the server name? can you try with a specific database that you have access on the server?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





@Kaviraj11 

Actually, I am entering both but still get the error.  Thanks

Here are a couple of steps to troubleshoot:

 

  1. Check SQL Server Authentication Mode:

    • Ensure that your SQL Server is configured to allow both Windows Authentication and SQL Server Authentication.
    • You can verify this in SQL Server Management Studio (SSMS) by right-clicking the server, selecting Properties, and checking the “Security” section.
  2. Verify User Permissions:

    • Confirm that the login you’re using has the necessary permissions to access the database.
    • In SSMS, navigate to the database, right-click, and choose “Properties.” Under “Permissions,” check if the login has the required access.
  3. Test Connection Outside Power BI:

    • Use SSMS or another tool to test the connection directly to the SQL Server.
    • If you encounter the same issue, it might be related to SQL Server configuration or network settings.
  4. Check Network Connectivity:

    • Ensure that the SQL Server is reachable from your machine.
    • Ping the server or try connecting using telnet to verify network connectivity.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Okay, but I'm asking for when you connect to SQL Server Database in PBI Desktop, Which mode are you connected with?

Kaviraj11_0-1722609477968.png

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Kaviraj11
Super User
Super User

Hi,

 

Are you using Window authentication as a method to access SQL Server?.

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.