Пример #1
0
 public Runner(Macros macros)
 {
     mac = macros;
     if (mac.GetTF("$DBTRUSTED$"))
     {
         db = new SMOConnect(mac.Get("$DBSERVER$"), mac.Get("$DBCATALOG$"), true);
     }
     else
     {
         db = new SMOConnect(mac.Get("$DBSERVER$"), mac.Get("$DBCATALOG$"), mac.Get("$DBLOGIN$"), mac.Get("$DBPASSWORD$"));
     }
 }
Пример #2
0
 public BuildEngine()
 {
     mac = new Macros();
     mac.Set("$DBSERVER$", "localhost");
     mac.Set("$DBCATALOG$", "tempdb");
     mac.Set("$DBTRUSTED$", "true");
     mac.Set("$DBLOGIN$", "");
     mac.Set("$DBPASSWORD$", "");
     mac.Set("$VERBOSE$", "true");
     mac.Set("$DBBVERSION$", "dbo.DBBVersion");
     mac.Set("$DBBCHANGES$", "dbo.DBBChanges");
     mac.Set("$PREPENDFILE$", "true");
     mac.Set("$APPENDGO$", "true");
     mac.Set("$RUNONCESKIP$", "false");
     mac.Set("$VERSIONING$", "false");
 }