private void DoWork(Instance instance) { foreach (var database in instance.AttachedDatabases) { if (database == null || database.Name == "reporting") { continue; } if (Databases.Length != 0 && Databases.All(x => !x.Equals(database.Name, StringComparison.OrdinalIgnoreCase))) { continue; } SqlServerManager.Instance.Execute(database.ConnectionString, $"DELETE FROM [{DatabaseName}]"); } }