コード例 #1
0
 private static void create_the_database(string roundhouse_exe, string server_name, string db_name)
 {
     CommandRunner.run(roundhouse_exe, string.Format("/s={0} /db={1} /f={2} /silent /simple", server_name, db_name, Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)), true);
 }
コード例 #2
0
 private static void run_roundhouse_drop_create(string roundhouse_exe, string server_name, string db_name, string path_to_scripts)
 {
     CommandRunner.run(roundhouse_exe, string.Format("/s={0} /db={1} /f={2} /silent /drop", server_name, db_name, path_to_scripts), true);
     CommandRunner.run(roundhouse_exe, string.Format("/s={0} /db={1} /f={2} /silent /simple", server_name, db_name, path_to_scripts), true);
 }
コード例 #3
0
 private static void restore_the_database(string roundhouse_exe, string server_name, string db_name, string path_to_scripts, string path_to_restore)
 {
     CommandRunner.run(roundhouse_exe, string.Format("/s={0} /db={1} /f={2} /silent /restore /restorefrompath=\"{3}\"", server_name, db_name, path_to_scripts, path_to_restore), true);
 }