예제 #1
0
 public void Dispose()
 {
     using (Utilities.SQL.SQLHelper Helper = new Utilities.SQL.SQLHelper("", "Data Source=localhost;Initial Catalog=master;Integrated Security=SSPI;Pooling=false", CommandType.Text))
     {
         Helper.Batch().AddCommand("ALTER DATABASE TestDatabase SET OFFLINE WITH ROLLBACK IMMEDIATE", CommandType.Text)
             .AddCommand("ALTER DATABASE TestDatabase SET ONLINE", CommandType.Text)
             .AddCommand("DROP DATABASE TestDatabase", CommandType.Text);
         Helper.ExecuteNonQuery();
     }
 }