17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Backup and Reco very<br />

No database-driven application should ever be deployed or sold to a customer without a mechanism for<br />

dealing with backup and recovery. As I’ve probably told people at least 1,000 times: You would truly be<br />

amazed at the percentage of database operations that I’ve gone into that do not have any kind of reliable<br />

backup. In a word: EEEeeeeeek!<br />

There is one simple rule to follow regarding backups; do it early and often. The follow up to this to not<br />

just back up to a file on the same disk and forget it; you need to make sure that a copy moves to a completely<br />

separate place (ideally off-site) to be sure that it’s safe. I’ve personally seen servers catch fire.<br />

(The stench was terrible, as were all the freaked out staff.) You don’t want to find out that your backups<br />

went up in the same smoke that your original data did.<br />

For applications being done by the relative beginner, you’re probably going to stick with referring the<br />

customer or onsite administrator to <strong>SQL</strong> <strong>Server</strong>’s own backup and recovery tools, but, even if you do,<br />

you should be prepared to support them as they come up to speed in their use. In addition, there is no<br />

excuse for not understanding what it is the customer needs to do.<br />

Creating a Backup: a.k.a. “A Dump”<br />

Creating a backup file of a given database is actually pretty easy. Simply navigate in Object Explorer to<br />

the database you’re interested in, and right-click.<br />

Now choose Tasks and Back up, as shown in Figure 19-14.<br />

Figure 19-14<br />

Chapter 19: Playing Administrator<br />

575

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!