Exemplo n.º 1
0
        public static string GetServerTypeName(this TOM.Database database)
        {
            switch (database.GetServerType())
            {
            case AsServerType.PBIDesktop: return("Power BI Desktop");

            case AsServerType.PBIService: return("Power BI Service");

            case AsServerType.PBIReportServer: return("Power BI Report Server");

            case AsServerType.SSAS: return("SQL Server Analysis Services");

            case AsServerType.AzureAS: return("Azure Analysis Services");

            default:
                return("Not connected");
            }
        }
Exemplo n.º 2
0
 public static bool IsPBIDesktop(this TOM.Database database)
 {
     return(database.GetServerType() == AsServerType.PBIDesktop);
 }