use CaptoolsDB
EXEC sp_addumpdevice 'disk', 'testbackupfilename', 'c:\vikram\testbackupfilename.bak'
BACKUP DATABASE CaptoolsDB TO testbackupfilename
use master
RESTORE DATABASE CaptoolsDB FROM testbackupfilename
Exec sp_dropdevice testbackupfilename