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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
cmikos
Helper I
Helper I

Can't connect to SQL Server named instance

I can't connect to my SQL Server named instance with Power BI Desktop (October 2017)

 

I can only connect if I don't specify the instance name but then my datasource gets published without it and can't connect (I think).

 

When I put the instance name in with or without the port number I get:

 

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: SQL Network Interfaces, error: 25 - Connection string is not valid)"

1 ACCEPTED SOLUTION

I figured out the issue, it was UDP port 1434 for the SQL Browser, non-standard, usually TCP 1434 is enough

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@cmikos

Do you connect to the SQL Server using the machinename\MSSQLSERVER or servername\MSSQLSERVER connection string? If that is the case, MSSQLSERVER is for default instance, hence just provide the server name(machine name) alone in the connection string  and don’t use \MSSQLSERVER.

After you publish the PBIX file to Power BI Service, make sure that you enter same server name and database name as that you use in Power BI Desktop when adding SQL data source within gateway, then you are able to use gateway to refresh your dataset.

Regards,
Lydia

I figured out the issue, it was UDP port 1434 for the SQL Browser, non-standard, usually TCP 1434 is enough

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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