Solved

Can I verify a backup from the query window.

Posted on 2008-06-26
3
156 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
  • 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
insert query with value having 's 2 51
Help  needed 3 22
convert null in sql server 12 31
Why i am getting a star, SSMS does not show me any error. Division Error 5 20
by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now