Changes

UBIK Console

7 bytes removed, 13:42, 16 April 2018
The following script code is taken from the example script file and shows how to work with {{UBIK}} Console via script file.
<source lang="csharpxml">
# #r "C:\\Users\\cle\\Documents\\Dev\\UBIK.Server\\Branches\\2.6\\UBIK.Console\\bin\\Debug\\DBTool.exe"
# System.Data.SqlClient.SqlConnectionStringBuilder scsb = new System.Data.SqlClient.SqlConnectionStringBuilder(ubikEnvironmentConnection.ConnectionString);
# string backUpDir = @"C:\SQL\bakup";
 
# bool isTrue = UBIK.Runtime.WorkflowUtility.Str2Bool("1"); //%
# System.Console.WriteLine(isTrue.ToString()); //%
 
 
# DBTool.MSSQLTools.BackupDatabase(scsb.DataSource, scsb.UserID, scsb.Password, false, scsb.InitialCatalog, bak: string.Format(@"{0}\{1}_{2}_{3}.bak", backUpDir, scsb.InitialCatalog, DateTime.Now.ToString("yyyyMMdd"), DateTime.Now.ToString("HHmm")));
 
</source>
182
edits