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 = ' 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 UPPER(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 is missing!' GOTO ONERROR END PRINT @tab+'SyncServerProperties records were succesfully updated!' IF EXISTS (SELECT * FROM sysobjects WHERE UPPER(name)='SYNCRELATIONSHIPS' AND xtype='U') BEGIN UPDATE [SyncRelationships] SET [isChildDependent]=0, [isParentDependent]=1 WHERE ([parentID]=100 AND [childID]=6507) IF @@ERROR<>0 BEGIN PRINT @tab+'ERROR: Error happened during updating records of SyncRelationships table!' GOTO ONERROR END END ELSE BEGIN PRINT @tab+'ERROR: Error happened during updating records of SyncRelationships, table is missing!' GOTO ONERROR END PRINT @tab+'SyncRelationships 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!'