private void generate(SqlAudit.ScriptAction scriptAction)
 {
     try
     {
         this.txtDDLScript.Text = SQLAudit.StorageAuditGenerator.GenerateAuditScript(this.storage.ConnectionString, scriptAction, null);
     }
     catch (Exception ex)
     {
         this.ShowError(ex.Message);
     }
 }
示例#2
0
 private void generate(SqlAudit.ScriptAction scriptAction)
 {
     try
     {
         this.HourGlass(true);
         this.txtDDLScript.Clear();
         /*Application.DoEvents();*/
         this.txtDDLScript.Text = SQLAudit.StorageAuditGenerator.GenerateAuditScript(this.storage.ConnectionString, scriptAction, new SqlAudit.ProgressChangeDelegate(this.ProgressChange));
         this.txtDDLScript.SelectionStart = 0;
         this.txtDDLScript.ScrollToCaret();
     }
     catch (Exception ex)
     {
         this.ShowError(ex.Message, ex.Source);
     }
     finally
     {
         this.HourGlass(false);
     }
 }