Beispiel #1
0
 public int RestoreDataBase(string Path, int FileNo)
 {
     lock (this)
     {
         ClsUtility.Init_Hashtable();
         ClsObject DataManager = new ClsObject();
         this.Connection        = DataMgr.GetConnection_Master();
         DataManager.Connection = this.Connection;
         ClsUtility.AddParameters("@Path", SqlDbType.VarChar, Path);
         ClsUtility.AddParameters("@Position", SqlDbType.Int, FileNo.ToString());
         return((Int32)DataManager.ReturnObject(ClsUtility.theParams, "pr_SystemAdmin_RestoreDB_Constella", ClsUtility.ObjectEnum.ExecuteNonQuery));
     }
 }