소스 검색

*오류 수정
- 특정 서버 기준 DB 백업 파일 복원시 서버에 연결하지 못하는 오류 수정

chpark 1 개월 전
부모
커밋
cabb1c3e66
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      DataManager/Forms/AllInOneDashBoard.cs

+ 2 - 1
DataManager/Forms/AllInOneDashBoard.cs

@@ -554,7 +554,8 @@ namespace DataManager
             restore.Devices.AddDevice(backupFilePath, DeviceType.File);
 
             // Read the backup header to get the database name
-            var fileList = restore.ReadFileList(new Server());
+            ServerConnection connection = new ServerConnection(_DbThread.ServerName);
+            var fileList = restore.ReadFileList(new Server(connection));
             return new Tuple<string, string>(fileList.Rows[0][0].ToString(), fileList.Rows[1][0].ToString());
         }