I have a file with sqb extension(e.g: clark.sqb),how should i to restore database using the sqb file.thanks!
I think that's a Red Gate SQLBackup file - have a look here for more information. You should be able to download a trial to try the restore.
Good luck!
Just another quick answer - if you have the Redgate SQL Backup application installed, you can do all this through their application and you don't have to mess with commands.
Tools --> Utilities --> SQL Backup File Converter
SQB files are created using RedGate's SQL Backup Tool. They supply a command line tool called sqb2mtf that can be used to convert to a native SQL backup that can then be easily restored.
SQB files are a SQL Server backup format created by Red Gate's SQL Backup Pro software.
As mentioned in Nick Sturgess' answer, there are command line and GUI tools available for converting SQB files into regular SQL Server backup files that can then be restored normally.
Additionally, if you have SQL Backup Pro's server components installed on your SQL Server, you can restore a database from SQB files directly using a stored procedure call like the following:
EXEC master..sqlbackup '-sql "RESTORE DATABASE [MyDatabase] FROM DISK = [C:\backups\*.sqb] LATEST_ALL WITH RECOVERY"'
That command will restore the latest possible backup of the MyDatabase
database from all of the SQB files in C:\backups\
. So, if you have a handful of full backups, differential backups, and transactional backups all kept in C:\backups, this command will automatically calculate the latest backup that can be restored without you having to select the correct files manually and without having to convert the SQB files to another format.
There are a number of different options that can be used to restore your database from SQB files directly, including:
All of these options (and more) are outlined on Red Gate's syntax example page.