 
   , SpreadUpdStatRun                              int NULL
 
+  , SpreadCheckDb                                 int NULL
+
   , FullBackupPath                                nvarchar(512) NULL 
 
   , LogBackupPath                                 nvarchar(512) NULL 


GO

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

ALTER Database YourSqlDba Set TRUSTWORTHY ON



-- *****************************************************************************************************

If not exists

   (select * from sys.sql_logins where name='YourSQLDba')

Begin

  Raiserror (N'Login YourSQLDba does not exists. Please create login ''YourSQLDba'' with sysadmin rights.  Query windows in going to be disconnected to prevent execution of the rest of the script', 20, 16, 1) WITH LOG

END

GO



If not exists

   (SELECT 1 WHERE IS_SRVROLEMEMBER ( 'sysadmin' , 'YourSQLDba'  ) = 1)

Begin

  Raiserror (N'Login YourSQLDba needs sysadmin rights. Query windows in going to be disconnected to prevent execution of the rest of the script', 20, 16, 1) WITH LOG

END

GO



-- For users of previous version set new solution to 'YourSQLDba' database
