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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
PBIDev
New Member

Is it possible to change powerbi connection string to add ApplicationName?

Hi,

can we add more connection attributes such as adding ApplicationName in Connection string

1 ACCEPTED SOLUTION


@PBIDev wrote:

Thank you. WE are using SSAS with import mode , and we want to change in Power BI dashboard connections.

 


@PBIDev

The approach only works in SQL Server database in DirectQuery mode. For SSAS, as far as I know, it is not possible.

View solution in original post

3 REPLIES 3
Eric_Zhang
Microsoft Employee
Microsoft Employee

@PBIDev wrote:

Hi,

can we add more connection attributes such as adding ApplicationName in Connection string

@PBIDev

Are you talking about the REST API Set All Connections? If so, you keep in mind that it only works for datasets in direct query mode.

 

For SQL Server, by default the connection strings are like

 

 

data source=servername;initial catalog=dbname;persist security info=False

 

As per my test, you can update the connection string with Application name

 

data source=servername;initial catalog=dbname;Application Name=MyAppName;persist security info=True

 

Then the updated  connection string actually works if I observe the connections from SQL Server with SP_WHO2.

Capture.PNG

 

 

Thank you. WE are using SSAS with import mode , and we want to change in Power BI dashboard connections.

 


@PBIDev wrote:

Thank you. WE are using SSAS with import mode , and we want to change in Power BI dashboard connections.

 


@PBIDev

The approach only works in SQL Server database in DirectQuery mode. For SSAS, as far as I know, it is not possible.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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