20 Aug 2007

SQL Server 2005: Backup and Restore

The backup and restore component of Microsoft SQL Server 2005 provides an essential safeguard to help protect critical data stored in SQL Server databases.

See all Backing Up and Restoring How-to Topics

 

A little example:

USE master
GO
RESTORE FILELISTONLY
   FROM DISK = 'C:\SQL_DATA\BACKUP\MyDataBase_backup.bak';
RESTORE DATABASE MyDataBase
   FROM DISK = 'C:\SQL_DATA\BACKUP\MyDataBase_backup.bak'
   WITH RECOVERY,
   MOVE 'MyDataBase_Data' TO 'C:\SQL_DATA\MyDataBase.mdf',
   MOVE 'MyDataBase_Log' TO 'C:\SQL_DATA\MyDataBase.ldf';
GO

Categories: Database

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag





Live preview

Gravatar

May 16 2008 12:46