BACKUP DATABASE [kmpleteTablet] TO  DISK = N'C:\Users\Public\Downloads\kmpleteTabletBackup.bak' WITH NOFORMAT, 
	NOINIT,  
	NAME = N'kmpleteTablet-Full Database Backup', 
	SKIP, 
	NOREWIND, 
	NOUNLOAD,  
	STATS = 10
GO

declare @backupSetId as int
select @backupSetId = position from msdb..backupset where database_name=N'kmpleteTablet' and backup_set_id=(select max(backup_set_id) from msdb..backupset where database_name=N'kmpleteTablet' )
if @backupSetId is null begin raiserror(N'Verify failed. Backup information for database ''kmpleteTablet'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM  DISK = N'C:\Users\Public\Downloads\kmpleteTabletBackup.bak' WITH  FILE = @backupSetId,  NOUNLOAD,  NOREWIND
GO
