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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Fcoatis
Post Patron
Post Patron

SQL Server Alias name

Hello All,

 

I just installed SQL Server 2019 Developer in my laptop and configured an alias name with protocol Named Pipes. Everything seems to work fine since I can access the alias name through SSMS. However I have a lot of samples of pbix files pointing to at his SQL Server (the one I Aliased), when I try to refresh the Source I get this error 40. My question is what am I missing? Once I can access the Alias through SSMS.

Thanks in advance

1 ACCEPTED SOLUTION

@Fcoatis Well, a SQL Alias is a client setting, right? So you would need to create the alias on your clients and I don't think that is supported with Power BI. You could create a hosts file entry: 

C:\Windows\System32\drivers\etc

Problems with alias as Data Source - Microsoft Q&A

 

 



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@Fcoatis Have you reviewed this thread? Solved: Re: SQL Connection Named Pipes Provider, error:40 - Microsoft Power BI Community



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler Yes I did! I even created an outbound rule in firewall to the default port. The odd thing, and that was my question, if I can access alias server through SSMS, why not through Power BI (Desktop). Both Power BI and SQL Server running in the same laptop.

@Fcoatis Well, a SQL Alias is a client setting, right? So you would need to create the alias on your clients and I don't think that is supported with Power BI. You could create a hosts file entry: 

C:\Windows\System32\drivers\etc

Problems with alias as Data Source - Microsoft Q&A

 

 



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.