forked from docs/doc-exports
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
24 lines
4.4 KiB
HTML
24 lines
4.4 KiB
HTML
<a name="rds_05_0044"></a><a name="rds_05_0044"></a>
|
|
|
|
<h1 class="topictitle1">Restoring from Backup Files to a Self-Built SQL Server Database</h1>
|
|
<div id="body1564043192113"><p id="rds_05_0044__p247782981215">You can download backup files by referring to section <a href="rds_11_0013.html">Downloading a Backup File</a> and restore data from them. You can use SQL Server Management Studio (SSMS) to connect to a self-built ECS database or local database to restore data. The following uses SSMS as an example to show how to restore data from a backup file on a local database.</p>
|
|
<div class="note" id="rds_05_0044__note12334333391"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="rds_05_0044__ul56587296421"><li id="rds_05_0044__li106589299421">Before restoring data, ensure that the ECS has been installed with the SQL Server database service running a same or later version than the SQL Server databases.</li></ul>
|
|
</div></div>
|
|
<div class="section" id="rds_05_0044__section1851238181713"><h4 class="sectiontitle">Procedure</h4><ol id="rds_05_0044__ol173917380359"><li id="rds_05_0044__li113913810355"><span>Download SSMS and upload it to the ECS for installation.</span><p><p id="rds_05_0044__p7940128113815">Download <strong id="rds_05_0044__b842352706105517">SSMS 18.0 (GA)</strong> from the <a href="https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-2017" target="_blank" rel="noopener noreferrer">website</a> and upload it to the ECS.</p>
|
|
</p></li><li id="rds_05_0044__li136516275614"><span>On the ECS, decompress the RDS full backup file that has been downloaded.</span></li><li id="rds_05_0044__li113223154479"><span>Start the SSMS client.</span></li><li id="rds_05_0044__li1813072212479"><span>Log in to the local database service through the SSMS client.</span></li><li id="rds_05_0044__li5426141511528"><span>In the SSMS client, right-click <strong id="rds_05_0044__b169381114171214">Databases</strong> and choose <strong id="rds_05_0044__b547528185819">Restore Database</strong>.</span><p><p id="rds_05_0044__p18744329113013"><span><img id="rds_05_0044__image107445295306" src="en-us_image_0000001191131383.png"></span></p>
|
|
</p></li><li id="rds_05_0044__li11157142018419"><span>In the displayed <strong id="rds_05_0044__b13394173715815">Restore Database</strong> dialog box, select <strong id="rds_05_0044__b14591113416592">Device</strong> in the <strong id="rds_05_0044__b66561148125915">Source</strong> pane. In the displayed <strong id="rds_05_0044__b263471513014">Select backup devices</strong> dialog box, specify the backup media and its location and click <strong id="rds_05_0044__b146082291318">OK</strong>.</span><p><ol type="a" id="rds_05_0044__ol522014201342"><li id="rds_05_0044__li4757193215344">Set <strong id="rds_05_0044__b157175509313">Backup media type</strong> to <strong id="rds_05_0044__b14317165316319">File</strong>.<p id="rds_05_0044__p73588616210"><span><img id="rds_05_0044__image5871505307" src="en-us_image_0000001191131379.png"></span></p>
|
|
</li><li id="rds_05_0044__li922022015343">Click <strong id="rds_05_0044__b1623511948">Add</strong> to add the decompressed backup file (in the .bak format) and configure required information on the <span class="uicontrol" id="rds_05_0044__uicontrol1052045184316"><b>Options</b></span> page.<div class="fignone" id="rds_05_0044__fig115121111144511"><span class="figcap"><b>Figure 1 </b>Adding a backup file</span><br><span><img id="rds_05_0044__image16607577514" src="en-us_image_0000001145051704.png"></span></div>
|
|
<div class="fignone" id="rds_05_0044__fig9601935104916"><span class="figcap"><b>Figure 2 </b>Configuring required options</span><br><span><img id="rds_05_0044__image96565155499" src="en-us_image_0000001191131381.png"></span></div>
|
|
</li></ol>
|
|
<p id="rds_05_0044__p41621409916">3. Click <strong id="rds_05_0044__b18590193311432">OK</strong> to add the backup file to the backup media list and click <strong id="rds_05_0044__b124632619459">OK</strong> again to restore the backup file to a self-built database.</p>
|
|
<p id="rds_05_0044__p81513520347"><span><img id="rds_05_0044__image1481545017584" src="en-us_image_0000001191131385.png"></span></p>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_sqlserver_05_0034.html">Backups and Restorations</a></div>
|
|
</div>
|
|
</div>
|
|
|