{"id":303,"date":"2016-02-03T17:09:17","date_gmt":"2016-02-03T08:09:17","guid":{"rendered":"http:\/\/www.onepage.co.kr\/wordpress\/?p=303"},"modified":"2016-04-01T00:43:23","modified_gmt":"2016-03-31T15:43:23","slug":"ms-sql-server-database-restore","status":"publish","type":"post","link":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/2016\/02\/03\/ms-sql-server-database-restore\/","title":{"rendered":"ms sql server database restore"},"content":{"rendered":"<p><a data-topotext=\"[{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[45936,51060,53440,48288,51060,49828,32,48373,50896,46,32,10,10,104,116,116,112,58,47,47,109,46,98,108,111,103,46,110,97,118,101,114,46,99,111,109,47,109,97,118,105,115,53,47,49,48,48,55,57,53,49,52,53,56,54,10,104,116,116,112,115,58,47,47,109,115,100,110,46,109,105,99,114,111,115,111,102,116,46,99,111,109,47,107,111,45,107,114,47,108,105,98,114,97,114,121,47,109,115,49,56,57,50,55,50,40,118,61,115,113,108,46,49,50,48,41,46,97,115,112,120,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;fontHints&quot;:1,&quot;uniqueId&quot;:61},&quot;codePoints&quot;:[45,45,32,48373,44396,32,51456,48708]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[10,85,83,69,32,77,83,68,66,10,71,79,54952,10,45,45,32,48177,50629,54028,51068,32,54869,51064,32,40,84,89,80,69,58,68,32,45,32,54400,44,32,76,32,45,32,47196,44536,44,32,73,32,45,32,52264,46321,48177,50629,41,10,83,69,76,69,67,84,160,66,65,67,75,85,80,95,83,84,65,82,84,95,68,65,84,69,44,32,84,89,80,69,44,32,68,65,84,65,66,65,83,69,95,78,65,77,69,44,32,80,72,89,83,73,67,65,76,95,68,69,86,73,67,69,95,78,65,77,69,160,32,10,70,82,79,77,160,77,83,68,66,46,68,66,79,46,66,65,67,75,85,80,83,69,84,32,65,32,74,79,73,78,32,77,83,68,66,46,68,66,79,46,66,65,67,75,85,80,77,69,68,73,65,70,65,77,73,76,89,32,66,32,79,78,32,65,46,77,69,68,73,65,95,83,69,84,95,73,68,32,61,32,66,46,77,69,68,73,65,95,83,69,84,95,73,68,32,10,87,72,69,82,69,160,68,65,84,65,66,65,83,69,95,78,65,77,69,32,61,32,39,69,76,79,67,50,48,48,49,39,10,65,78,68,160,160,66,65,67,75,85,80,95,83,84,65,82,84,95,68,65,84,69,32,62,32,71,69,84,68,65,84,69,40,41,32,45,32,50,10,79,82,68,69,82,32,66,89,32,66,65,67,75,85,80,95,83,84,65,82,84,95,68,65,84,69,32,68,69,83,67,10,10,32,10,45,45,32,54400,48177,50629,32,54028,51068,32,51221,48372,32,54869,51064,10,82,69,83,84,79,82,69,32,72,69,65,68,69,82,79,78,76,89,32,70,82,79,77,32,68,73,83,75,32,61,32,64,70,73,76,69,80,65,84,72,32,45,45,39,76,58,92,83,81,76,95,66,65,67,75,85,80,92,65,65,65,46,70,85,76,76,10,82,69,83,84,79,82,69,32,70,73,76,69,76,73,83,84,79,78,76,89,32,70,82,79,77,32,68,73,83,75,32,61,32,64,70,73,76,69,80,65,84,72,32,45,45,39,76,58,92,83,81,76,95,66,65,67,75,85,80,92,65,65,65,46,70,85,76,76,10,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;fontHints&quot;:1,&quot;uniqueId&quot;:61},&quot;codePoints&quot;:[45,45,32,48373,44396,32,51652,54665]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[10,85,83,69,32,77,65,83,84,69,82,10,71,79,10,32,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;fontHints&quot;:1,&quot;uniqueId&quot;:61},&quot;codePoints&quot;:[45,45,32,48373,44396,47784,45944,51060,32,83,73,77,80,76,69,51064,44221,50864,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[160,45,45,32,49,46,32,54400,48177,50629,32,48373,44396,32,48177,50629,51652,54665,10,160,82,69,83,84,79,82,69,32,68,65,84,65,66,65,83,69,32,64,68,66,95,78,65,77,69,10,160,160,70,82,79,77,32,68,73,83,75,32,61,32,64,70,73,76,69,80,65,84,72,32,87,73,84,72,160,32,78,79,82,69,67,79,86,69,82,89,10,160,160,45,45,44,32,82,69,80,76,65,67,69,32,45,45,32,48373,44396,49884,32,44592,51316,32,54028,51068,32,44368,52404,54624,32,46412,10,160,160,45,45,44,32,77,79,86,69,32]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;link&quot;:&quot;mailto:'@LOGICAL_NAME'&quot;,&quot;uniqueId&quot;:62},&quot;codePoints&quot;:[39,64,76,79,71,73,67,65,76,95,78,65,77,69,39]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[32,84,79,32]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;link&quot;:&quot;mailto:'@PYSICAL_PATH'&quot;,&quot;uniqueId&quot;:63},&quot;codePoints&quot;:[39,64,80,89,83,73,67,65,76,95,80,65,84,72,39]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[32,45,45,32,48373,44396,49884,32,54028,51068,32,50948,52824,32,48320,44221,54624,32,46412,10,32,10,160,45,45,32,50,46,32,52264,46321,48177,50629,32,48373,44396,32,40,54644,45817,54616,45716,44221,50864,32,47564,41,10,160,82,69,83,84,79,82,69,32,68,65,84,65,66,65,83,69,32,64,68,66,95,78,65,77,69,10,160,160,70,82,79,77,32,68,73,83,75,61,32,64,70,73,76,69,80,65,84,72,32,87,73,84,72,32,78,79,82,69,67,79,86,69,82,89,10,32,10,160,45,45,32,51,46,32,48373,44396,32,47560,47924,47532,10,160,82,69,83,84,79,82,69,32,68,65,84,65,66,65,83,69,32,64,68,66,95,78,65,77,69,32,87,73,84,72,32,82,69,67,79,86,69,82,89,10,32,10,160,45,45,32,52,46,32,45796,51473,32,49324,50857,51088,47196,32,48320,44221,10,160,65,76,84,69,82,32,68,65,84,65,66,65,83,69,32,64,68,66,95,78,65,77,69,32,83,69,84,32,77,85,76,84,73,95,85,83,69,82,32,10,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;fontHints&quot;:1,&quot;uniqueId&quot;:61},&quot;codePoints&quot;:[45,45,32,48373,44396,47784,45944,51060,32,70,85,76,76,44,32,66,85,76,75,95,76,79,71,71,69,68,51064,44221,50864,32,40,52264,46321,48177,50629,44,32,47196,44536,48177,50629,32,49324,50857,54620,45796,41,160,10]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[160,45,45,32,48,46,32,48708,49345,47196,44536,32,48177,50629,32,58,32,47560,51648,47561,32,47196,44536,32,48177,50629,47196,32,49324,50857,10,160,66,65,67,75,85,80,32,76,79,71,32,64,68,66,95,78,65,77,69,32,84,79,32,68,73,83,75,32,61,32,64,70,73,76,69,80,65,84,72,32,10,160,160,87,73,84,72,32,78,79,82,69,67,79,86,69,82,89,32,45,45,32,100,98,49345,53468,47484,32,48373,44396,51473,51004,47196,32,48320,44221,54620,45796,32,45,62,32,68,66,32,48320,44221,49324,54637,32,50630,44172,32,54620,45796,33,10,160,160,45,45,44,32,123,32,67,79,78,84,73,78,85,69,95,65,70,84,69,82,95,69,82,82,79,82,32,124,32,78,79,95,84,82,85,78,67,65,84,69,32,125,10,32,10,160,45,45,32,49,46,32,54400,48177,50629,32,48373,44396,10,160,82,69,83,84,79,82,69,32,68,65,84,65,66,65,83,69,32,64,68,66,95,78,65,77,69,160,160,70,82,79,77,32,68,73,83,75,32,61,32,64,70,73,76,69,80,65,84,72,32,87,73,84,72,160,32,78,79,82,69,67,79,86,69,82,89,10,160,160,45,45,44,32,77,79,86,69,32]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;link&quot;:&quot;mailto:'@LOGICAL_NAME'&quot;,&quot;uniqueId&quot;:62},&quot;codePoints&quot;:[39,64,76,79,71,73,67,65,76,95,78,65,77,69,39]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[32,84,79,32]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;link&quot;:&quot;mailto:'@PYSICAL_PATH'&quot;,&quot;uniqueId&quot;:63},&quot;codePoints&quot;:[39,64,80,89,83,73,67,65,76,95,80,65,84,72,39]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[32,45,45,32,48373,44396,49884,32,54028,51068,32,50948,52824,32,48320,44221,54624,32,46412,10,32,10,160,45,45,32,50,46,32,52264,46321,48177,50629,32,48373,44396,32,40,54644,45817,54616,45716,44221,50864,32,47564,41,10,160,82,69,83,84,79,82,69,32,68,65,84,65,66,65,83,69,32,64,68,66,95,78,65,77,69,160,160,70,82,79,77,32,68,73,83,75,61,32,64,70,73,76,69,80,65,84,72,32,87,73,84,72,32,78,79,82,69,67,79,86,69,82,89,10,32,10,160,45,45,32,51,46,32,47196,44536,48177,50629,32,48373,44396,10,160,82,69,83,84,79,82,69,32,76,79,71,32,64,68,66,95,78,65,77,69,160,160,70,82,79,77,32]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;link&quot;:&quot;mailto:DISK=@LOG_BAL_FILE_1_PATH&quot;,&quot;uniqueId&quot;:64},&quot;codePoints&quot;:[68,73,83,75,61,64,76,79,71,95,66,65,76,95,70,73,76,69,95,49,95,80,65,84,72]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[32,87,73,84,72,32,78,79,82,69,67,79,86,69,82,89,10,160,82,69,83,84,79,82,69,32,76,79,71,32,64,68,66,95,78,65,77,69,160,160,70,82,79,77,32]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;link&quot;:&quot;mailto:DISK=@LOG_BAL_FILE_2_PATH&quot;,&quot;uniqueId&quot;:65},&quot;codePoints&quot;:[68,73,83,75,61,64,76,79,71,95,66,65,76,95,70,73,76,69,95,50,95,80,65,84,72]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[32,87,73,84,72,32,78,79,82,69,67,79,86,69,82,89,10,160,82,69,83,84,79,82,69,32,76,79,71,32,64,68,66,95,78,65,77,69,160,160,70,82,79,77,32]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;link&quot;:&quot;mailto:DISK=@LOG_BAL_FILE_3_PATH&quot;,&quot;uniqueId&quot;:66},&quot;codePoints&quot;:[68,73,83,75,61,64,76,79,71,95,66,65,76,95,70,73,76,69,95,51,95,80,65,84,72]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[32,87,73,84,72,32,78,79,82,69,67,79,86,69,82,89,10,160,82,69,83,84,79,82,69,32,76,79,71,32,64,68,66,95,78,65,77,69,160,160,70,82,79,77,32]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;link&quot;:&quot;mailto:DISK=@LOG_BAL_FILE_4_PATH&quot;,&quot;uniqueId&quot;:67},&quot;codePoints&quot;:[68,73,83,75,61,64,76,79,71,95,66,65,76,95,70,73,76,69,95,52,95,80,65,84,72]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{},&quot;uniqueId&quot;:14},&quot;codePoints&quot;:[32,87,73,84,72,32,78,79,82,69,67,79,86,69,82,89,45,45,44,32,83,84,79,80,65,84,32,61,32,39,48,48,48,48,45,48,48,45,48,48,32,48,48,58,48,48,58,48,48,46,48,48,48,39,32,45,45,32,51648,51221,49884,44036,32,48373,44396,10,32,10,160,45,45,32,52,46,32,48373,44396,32,47560,47924,47532,10,160,82,69,83,84,79,82,69,32,68,65,84,65,66,65,83,69,32,64,68,66,95,78,65,77,69,32,87,73,84,72,32,82,69,67,79,86,69,82,89,10,32,10,160,45,45,32,53,46,32,45796,51473,32,49324,50857,51088,47196,32,48320,44221,10,160,65,76,84,69,82,32,68,65,84,65,66,65,83,69,32,64,68,66,95,78,65,77,69,32,83,69,84,32,77,85,76,84,73,95,85,83,69,82]}]\">\u200b<\/a>\ub370\uc774\ud0c0\ubca0\uc774\uc2a4 \ubcf5\uc6d0.<\/p>\n<div><\/div>\n<div>http:\/\/m.blog.naver.com\/mavis5\/10079514586<\/div>\n<div>https:\/\/msdn.microsoft.com\/ko-kr\/library\/ms189272(v=sql.120).aspx<\/div>\n<div>&#8212; \ubcf5\uad6c \uc900\ube44<\/div>\n<div>USE MSDB<\/div>\n<div>GO\ud6a8<\/div>\n<div>&#8212; \ubc31\uc5c5\ud30c\uc77c \ud655\uc778 (TYPE:D &#8211; \ud480, L &#8211; \ub85c\uadf8, I &#8211; \ucc28\ub4f1\ubc31\uc5c5)<\/div>\n<div>SELECT\u00a0BACKUP_START_DATE, TYPE, DATABASE_NAME, PHYSICAL_DEVICE_NAME<\/div>\n<div>FROM\u00a0MSDB.DBO.BACKUPSET A JOIN MSDB.DBO.BACKUPMEDIAFAMILY B ON A.MEDIA_SET_ID = B.MEDIA_SET_ID<\/div>\n<div>WHERE\u00a0DATABASE_NAME = &#8216;ELOC2001&#8217;<\/div>\n<div>AND\u00a0\u00a0BACKUP_START_DATE &gt; GETDATE() &#8211; 2<\/div>\n<div>ORDER BY BACKUP_START_DATE DESC<\/div>\n<div><\/div>\n<div><\/div>\n<div>&#8212; \ud480\ubc31\uc5c5 \ud30c\uc77c \uc815\ubcf4 \ud655\uc778<\/div>\n<div>RESTORE HEADERONLY FROM DISK = @FILEPATH &#8211;&#8216;L:\\SQL_BACKUP\\AAA.FULL<\/div>\n<div>RESTORE FILELISTONLY FROM DISK = @FILEPATH &#8211;&#8216;L:\\SQL_BACKUP\\AAA.FULL<\/div>\n<div><\/div>\n<div>&#8212; \ubcf5\uad6c \uc9c4\ud589<\/div>\n<div>USE MASTER<\/div>\n<div>GO<\/div>\n<div><\/div>\n<div>&#8212; \ubcf5\uad6c\ubaa8\ub378\uc774 SIMPLE\uc778\uacbd\uc6b0<\/div>\n<div>\u00a0&#8212; 1. \ud480\ubc31\uc5c5 \ubcf5\uad6c \ubc31\uc5c5\uc9c4\ud589<\/div>\n<div>\u00a0RESTORE DATABASE @DB_NAME<\/div>\n<div>\u00a0\u00a0FROM DISK = @FILEPATH WITH\u00a0 NORECOVERY<\/div>\n<div>\u00a0\u00a0&#8211;, REPLACE &#8212; \ubcf5\uad6c\uc2dc \uae30\uc874 \ud30c\uc77c \uad50\uccb4\ud560 \ub54c<\/div>\n<div>\u00a0\u00a0&#8211;, MOVE &#8216;@LOGICAL_NAME&#8217; TO &#8216;@PYSICAL_PATH&#8217; &#8212; \ubcf5\uad6c\uc2dc \ud30c\uc77c \uc704\uce58 \ubcc0\uacbd\ud560 \ub54c<\/div>\n<div><\/div>\n<div>\u00a0&#8212; 2. \ucc28\ub4f1\ubc31\uc5c5 \ubcf5\uad6c (\ud574\ub2f9\ud558\ub294\uacbd\uc6b0 \ub9cc)<\/div>\n<div>\u00a0RESTORE DATABASE @DB_NAME<\/div>\n<div>\u00a0\u00a0FROM DISK= @FILEPATH WITH NORECOVERY<\/div>\n<div><\/div>\n<div>\u00a0&#8212; 3. \ubcf5\uad6c \ub9c8\ubb34\ub9ac<\/div>\n<div>\u00a0RESTORE DATABASE @DB_NAME WITH RECOVERY<\/div>\n<div><\/div>\n<div>\u00a0&#8212; 4. \ub2e4\uc911 \uc0ac\uc6a9\uc790\ub85c \ubcc0\uacbd<\/div>\n<div>\u00a0ALTER DATABASE @DB_NAME SET MULTI_USER<\/div>\n<div><\/div>\n<div>&#8212; \ubcf5\uad6c\ubaa8\ub378\uc774 FULL, BULK_LOGGED\uc778\uacbd\uc6b0 (\ucc28\ub4f1\ubc31\uc5c5, \ub85c\uadf8\ubc31\uc5c5 \uc0ac\uc6a9\ud55c\ub2e4)<\/div>\n<div>\u00a0&#8212; 0. \ube44\uc0c1\ub85c\uadf8 \ubc31\uc5c5 : \ub9c8\uc9c0\ub9c9 \ub85c\uadf8 \ubc31\uc5c5\ub85c \uc0ac\uc6a9<\/div>\n<div>\u00a0BACKUP LOG @DB_NAME TO DISK = @FILEPATH<\/div>\n<div>\u00a0\u00a0WITH NORECOVERY &#8212; db\uc0c1\ud0dc\ub97c \ubcf5\uad6c\uc911\uc73c\ub85c \ubcc0\uacbd\ud55c\ub2e4 -&gt; DB \ubcc0\uacbd\uc0ac\ud56d \uc5c6\uac8c \ud55c\ub2e4!<\/div>\n<div>\u00a0\u00a0&#8211;, { CONTINUE_AFTER_ERROR | NO_TRUNCATE }<\/div>\n<div><\/div>\n<div>\u00a0&#8212; 1. \ud480\ubc31\uc5c5 \ubcf5\uad6c<\/div>\n<div>\u00a0RESTORE DATABASE @DB_NAME\u00a0\u00a0FROM DISK = @FILEPATH WITH\u00a0 NORECOVERY<\/div>\n<div>\u00a0\u00a0&#8211;, MOVE &#8216;@LOGICAL_NAME&#8217; TO &#8216;@PYSICAL_PATH&#8217; &#8212; \ubcf5\uad6c\uc2dc \ud30c\uc77c \uc704\uce58 \ubcc0\uacbd\ud560 \ub54c<\/div>\n<div><\/div>\n<div>\u00a0&#8212; 2. \ucc28\ub4f1\ubc31\uc5c5 \ubcf5\uad6c (\ud574\ub2f9\ud558\ub294\uacbd\uc6b0 \ub9cc)<\/div>\n<div>\u00a0RESTORE DATABASE @DB_NAME\u00a0\u00a0FROM DISK= @FILEPATH WITH NORECOVERY<\/div>\n<div><\/div>\n<div>\u00a0&#8212; 3. \ub85c\uadf8\ubc31\uc5c5 \ubcf5\uad6c<\/div>\n<div>\u00a0RESTORE LOG @DB_NAME\u00a0\u00a0FROM DISK=@LOG_BAL_FILE_1_PATH WITH NORECOVERY<\/div>\n<div>\u00a0RESTORE LOG @DB_NAME\u00a0\u00a0FROM DISK=@LOG_BAL_FILE_2_PATH WITH NORECOVERY<\/div>\n<div>\u00a0RESTORE LOG @DB_NAME\u00a0\u00a0FROM DISK=@LOG_BAL_FILE_3_PATH WITH NORECOVERY<\/div>\n<div>\u00a0RESTORE LOG @DB_NAME\u00a0\u00a0FROM DISK=@LOG_BAL_FILE_4_PATH WITH NORECOVERY&#8211;, STOPAT = &#8216;0000-00-00 00:00:00.000&#8217; &#8212; \uc9c0\uc815\uc2dc\uac04 \ubcf5\uad6c<\/div>\n<div><\/div>\n<div>\u00a0&#8212; 4. \ubcf5\uad6c \ub9c8\ubb34\ub9ac<\/div>\n<div>\u00a0RESTORE DATABASE @DB_NAME WITH RECOVERY<\/div>\n<div><\/div>\n<div>\u00a0&#8212; 5. \ub2e4\uc911 \uc0ac\uc6a9\uc790\ub85c \ubcc0\uacbd<\/div>\n<div>\u00a0ALTER DATABASE @DB_NAME SET MULTI_USER<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u200b\ub370\uc774\ud0c0\ubca0\uc774\uc2a4 \ubcf5\uc6d0. http:\/\/m.blog.naver.com\/mavis5\/10079514586 https:\/\/msdn.microsoft.com\/ko-kr\/library\/ms189272(v=sql.120).aspx &#8212; \ubcf5\uad6c \uc900\ube44 USE MSDB GO\ud6a8 &#8212; \ubc31\uc5c5\ud30c\uc77c \ud655\uc778 (TYPE:D &#8211; \ud480, L &#8211; \ub85c\uadf8, I &#8211; \ucc28\ub4f1\ubc31\uc5c5) SELECT\u00a0BACKUP_START_DATE, TYPE, DATABASE_NAME, PHYSICAL_DEVICE_NAME FROM\u00a0MSDB.DBO.BACKUPSET A JOIN MSDB.DBO.BACKUPMEDIAFAMILY B ON A.MEDIA_SET_ID = B.MEDIA_SET_ID WHERE\u00a0DATABASE_NAME = &#8216;ELOC2001&#8217; AND\u00a0\u00a0BACKUP_START_DATE &gt; GETDATE() &#8211; 2 ORDER BY BACKUP_START_DATE DESC &#8212; \ud480\ubc31\uc5c5 \ud30c\uc77c \uc815\ubcf4 \ud655\uc778 RESTORE HEADERONLY FROM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-303","post","type-post","status-publish","format-standard","hentry","category-mssql"],"_links":{"self":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=303"}],"version-history":[{"count":1,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/303\/revisions"}],"predecessor-version":[{"id":304,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/303\/revisions\/304"}],"wp:attachment":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}