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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ianlee74
New Member

Can't connect to Azure Database

I'm trying to connect Power BI Desktop to our Azure Database (v12) but it will not.  I get the following error:

 

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"

 

I get this error after I enter the name of the database server and before I get an opportunity to give it credentials.

 

I'm able to connect the database with SSMS and other apps.  So, I'm fairly certain the problem is isolated to Power BI.

 

Thanks!

 

Ian

1 ACCEPTED SOLUTION
ianlee74
New Member

I apologize.  Moron move on my end.  I had an error in my server name and kept copy & pasting it all morning without realizing the typo.  DOH!

View solution in original post

3 REPLIES 3
ianlee74
New Member

I apologize.  Moron move on my end.  I had an error in my server name and kept copy & pasting it all morning without realizing the typo.  DOH!

Greg_Deckler
Super User
Super User

Is the IP address of the machine you have Power BI Desktop on allowed in the firewall settings for the Azure Database?

 

Is this Azure SQL DB or is this IaaS of SQL Server in Azure?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hello @Greg_Deckler ,

 

I am sorry to reactivate this old topic. However, I would like to know if there is a way to access azure sql database via power bi, in a production environment, where I can not set up a firewall rule. 

 

So far, I've found only via firewall rule.

 

Thank you

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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