INF: Copying SQL Database Files for Backup/Restore Purposes

Last reviewed: April 25, 1997
Article ID: Q46424

The information in this article applies to:

  - Microsoft SQL Server version 4.2 for OS/2

SUMMARY

The following information describes different methods that can be used to make copies of the database files such as master, model, tempdb, and pubs, which can then be used with Backup or Restore.

MORE INFORMATION

Copies of the MASTER.DAT file can be made with any reliable utility as long as the database is shut down when the copy is made. Restoring from such a backup is easier than using BLDMASTR and LOAD DATABASE, especially if the master database is damaged. (The procedure for restoring a damaged master database is complex if database devices were added or deleted since the dump was taken or if databases were created, dropped, or altered since the dump.) On the other hand, a copy of MASTER.DAT could simply be restored and no special action would be required.

Listed below are the advantages of using DUMP/LOAD:

  • It can be done while the database is up and even while it is being updated.
  • It allows backup and/or recovery of individual databases separately.
  • Empty space is not dumped.

Just copying MASTER.DAT could never accomplish the first and second items; however, a good data compression utility might do better than DUMP/LOAD on the third item.

If MASTER.DAT is copied while SQL Server is still running, many updated pages might not yet have been written to disk, resulting in an inconsistent image of the database. This is why DUMP/LOAD goes through SQL Server rather than accessing the disk files directly.


Additional query words: Dumping loading
Keywords : kbother SSrvServer
Version : 4.2
Platform : OS/2
Issue type : kbtshoot


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.