public static void InvokeAggregateStatsTask()
        {
            ExecuteAggregateStatisticsTask task = new ExecuteAggregateStatisticsTask()
            {
                ConnectionString = new SqlConnectionStringBuilder(DataBaseHelper.DBConnectionString),
                WhatIf           = false,
            };

            task.Execute();
        }
        public override void RunOnce()
        {
            Logger.Trace("Starting Execute AggregateStatistics Task.");
            ExecuteAggregateStatisticsTask task = new ExecuteAggregateStatisticsTask()
            {
                ConnectionString = Settings.MainConnectionString,
                WhatIf = Settings.WhatIf
            };
            task.Execute();

            Logger.Trace("Finished Execute AggregateStatistics Task.");
        }