private void UpdateDatabase() { try { PivotRunner runner = new PivotRunner(PivotFilePath); runner.ConnectionString = ConnectionString; if (!runner.Database.Exists) { WriteObject("Error: The ConnectionString parameter does not lead to an existing database!"); return; } if (ShouldProcess(runner.Database.Name, "Update")) { runner.Logger = new CmdletLogger(this); runner.Run(); } } catch (Exception e) { WriteObject("An exception has been thrown during the update process: " + e.Message); } }