30.06.2013 Views

SQL Server Backup and Restore - Simple Talk

SQL Server Backup and Restore - Simple Talk

SQL Server Backup and Restore - Simple Talk

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 8: Database <strong>Backup</strong> <strong>and</strong> <strong>Restore</strong> with <strong>SQL</strong> <strong>Backup</strong> Pro<br />

SELECT MessageData ,<br />

COUNT(MessageData)<br />

FROM dbo.MessageTable2<br />

GROUP BY MessageData<br />

GO<br />

Listing 8-18: Querying the st<strong>and</strong>by database.<br />

As we hoped, we've got both tables back, <strong>and</strong> we've restored the 41 rows in MessageTable1,<br />

but not the 42 in MessageTable2.<br />

Figure 8-26: Verifying our data, Part 1.<br />

To get these 42 rows back, so the table is back to the state it was when dropped, we'll need<br />

to roll forward a little further, but stop just before the DROP TABLE comm<strong>and</strong> was issued.<br />

Start another restore operation on DatabaseFor<strong>SQL</strong><strong>Backup</strong>s, <strong>and</strong> proceed as before<br />

to Step 2. This time, we want to overwrite the current DatabaseFor<strong>SQL</strong><strong>Backup</strong>s_<br />

St<strong>and</strong>by database, so select it from the drop-down box.<br />

285

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

Saved successfully!

Ooh no, something went wrong!