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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
honeybadger9000
New Member

Power BI Desktop SQL Server Connection Error

 

Hello everyone,

I'm having trouble connecting Power BI Desktop to my SQL Server and could use some help.

Setup:

  1. Installed and configured the on-premise gateway without issues.
  2. Diagnostics show all ports and servers are accessible.
  3. Added the gateway and SQL connection in Power BI - both show up as online and connected to my SQL server on the same machine as the gateway.

Problem: When I try to get data in Power BI Desktop using SQL Server, I get this error:

Unable to connect We encountered an error while trying to connect. Details: "Microsoft SQL: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - The wait operation timed out.)"

 

I've confirmed the instance name is correct and that SQL Server allows remote connections.

 

Question: Am I missing some firewall rules or any other settings to allow the connection through?

Any advice would be greatly appreciated!

Thank you!

3 REPLIES 3
honeybadger9000
New Member

I found this image on the screen but I got this.

 sql-server-database


I am opening fresh window PBI Desktop and click Import Data from SQL Server

@honeybadger9000 , this means the server name is wrong. I have a local sql server on my PC, the correct name is "localhost\sqlexpress", if i just use localhost I'll get the same error as you. Don't get confused with gateway at this stage, it has nothing to do with this connection step.

davidding_0-1721300486181.png

 

davidding
Resolver I
Resolver I

There are two separate concepts here: SQL connection and gateway.

 

The normal development process looks like below:

1. develop the report from PBI Desktop, connect to the SQL server via standard address

2. publish the report into a workspace

3. configure the gateway settings in the workspace to schedule automatic data refresh.

 

Could you please clarify which step did you run into the error? 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Kudoed Authors