Solved

Can I verify a backup from the query window.

Posted on 2008-06-26
3
158 Views
Last Modified: 2010-04-21
I have a simple statement I am runniing:

backup database scan to disk ='c:\temp\backup.bak'

I know you can verify readabilty of a backup using the backup command from the context menu, but I wanted to know if there was a way to do this in a query window.

Thanks!
0
Comment
Question by:hyphenpipe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 21874496
You can use the RESTORE VERIFYONLY command to do this.
0
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 21874505
so, it would be something like this:

RESTORE VERIFYONLY FROM DISK = 'c:\pathtoyourbackup\backup.bak'
0
 
LVL 6

Author Closing Comment

by:hyphenpipe
ID: 31470957
Thanks!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Pivot Query Problem 9 49
SQL query to summarize items per month 5 77
Help with stripping out character in SQL LEFT/RIGHT/REPLACE 2 49
Replication failure 1 21
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question