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

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 Solution Authors