SET NOCOUNT ON BEGIN TRANSACTION DECLARE @tab VARCHAR(1) DECLARE @nl VARCHAR(2) SET @tab=CHAR(09) SET @nl=CHAR(0x0D)+CHAR(0x0A) PRINT 'Script running started!' PRINT @nl -- updating SyncServerProperties IF EXISTS (SELECT * FROM sysobjects WHERE UPPER(name)='SYNCSERVERPROPERTIES' AND xtype='U') BEGIN UPDATE SyncServerProperties SET [value]= N' 2008-04-01T12:08:00.000 file://service.infomatix.hu /installers/uploads/desktopclient http://service.infomatix.hu/installers/download/desktopclient file://service.infomatix.hu /installers/uploads http://service.infomatix.hu/installers/download file://service.infomatix.hu /installers/uploads http://service.infomatix.hu/installers/download file://service.infomatix.hu /installers/uploads http://service.infomatix.hu/installers/download file://service.infomatix.hu /installers/uploads http://service.infomatix.hu/installers/download file://service.infomatix.hu/installers/uploads/mobivisiondesktop http://service.infomatix.hu/installers/download/mobivisiondesktop file://service.infomatix.hu/installers/uploads/ http://service.infomatix.hu/installers/download file://service.infomatix.hu/installers/uploads http://service.infomatix.hu/installers/download file://service.infomatix.hu/installers/uploads http://service.infomatix.hu/installers/download file://service.infomatix.hu/installers/uploads http://service.infomatix.hu/installers/download file://service.infomatix.hu/installers/uploads/mobivisiondesktop http://service.infomatix.hu/installers/download/mobivisiondesktop ' WHERE name='ClientModuleRegistry' IF @@ERROR<>0 BEGIN PRINT @tab+'ERROR: Error happened during updating records of SyncServerProperties table!' GOTO ONERROR END END ELSE BEGIN PRINT @tab+'ERROR: Error happened during updating records of SyncServerProperties table, table is missing!' GOTO ONERROR END PRINT @tab+'SyncServerProperties records were succesfully updated!' COMMIT GOTO DOEXIT ONERROR: PRINT @tab+'ERROR: Some error happened during running the script, modifications were rolled back!' RAISERROR('ERROR: Some error happened during running the script, modifications were rolled back!', 16, 10) ROLLBACK GOTO DOEXIT DOEXIT: PRINT @nl+'Script finished running!'