I’ve created the new SQLProperties add-in that adds DatabaseName, ServerName and UserName properties to tabs in SQL Server Management Studio.
You can reference them in tab coloring rule custom conditions like this:
<ConditionX (TabsStudioSQLProperties:Properties.DatabaseName)="master"/>
<ConditionX (TabsStudioSQLProperties:Properties.ServerName)="DESKTOP-2FRV28R"/>
<ConditionX (TabsStudioSQLProperties:Properties.UserName)="DESKTOP-2FRV28R\sv"/>
Download link: SQLProperties_100.zip
