 
   If object_id('tempdb..##JobHistory') is not null Drop table ##JobHistory;
 
-  If object_id('tempdb..##JobLastBkpLocations') is not null Drop table ##JobLastBkpLocation;
+  If object_id('tempdb..##JobLastBkpLocations') is not null Drop table ##JobLastBkpLocations;
+
+  If object_id('tempdb..##JobSeqCheckDb') is not null Drop table ##JobSeqCheckDb;
 
   If object_id('tempdb..##TargetServer') is not null Drop table ##TargetServer;
 


GO

ALTER AUTHORIZATION ON Database::[YourSQLDba] To [SA]

ALTER Database YourSqlDba Set TRUSTWORTHY ON



set nocount on

insert into #Version Values ('6.0.0.1', convert(datetime, '2015-11-20', 120))



