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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ab_99
Frequent Visitor

Connect to SQL Server Alias

Hi,

 

I have the issue, that my customers sql server and database name is different than mine - which is usually a common case.

I tried to work with parameters for the server and database name so that the customer can change the data source in the online service in the settings of the dataset, but every time, the customer added his information in the parameter, the data source in the pbix file still refered to my server and database so he couldn't connect the datasource online to the gateway.

 

As an alternative I thought that I could give my server an alias (e. g. server name of customer) and rename my database with the same name the customer uses for his database. 

As I did that and gave the information to Power BI, an error occured that the server wasn't found or is not accessible, even if I am able to connect via the alias on SSMS.

 

So my question is, is there any possible work-around for this case or a possibility to work with the server alias? 

 

Thanks in advance!

Best

Anett

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ab_99 ,
Based on your description, I looked up documentation for the issue, and for those who can't connect to the database using aliases, you can check if the protocol you're using is enabled in the SQL Server client networking utility. Follow the documents below
Solved: SQL Server Alias name - Microsoft Fabric Community
Problems with alias as Data Source - Microsoft Q&A
www.sqlshack.com
Of course, you can also use dynamic parameters to get the database server, you can refer to the following document

Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @ab_99 ,
Based on your description, I looked up documentation for the issue, and for those who can't connect to the database using aliases, you can check if the protocol you're using is enabled in the SQL Server client networking utility. Follow the documents below
Solved: SQL Server Alias name - Microsoft Fabric Community
Problems with alias as Data Source - Microsoft Q&A
www.sqlshack.com
Of course, you can also use dynamic parameters to get the database server, you can refer to the following document

Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Thank you very much for your reponse!

I actually tried the solution with dynamic parameters again. I used it previously, as mentioned in my original post, but this time I tagged the button in the options saying "always allow parameterization in data source and transformation dialogs".

I uploaded the file again to the customer tenant and he changed the parameters, refreshed the url and then the new data source was set in the data set. 

 

ab_99_0-1730968427919.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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