Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.MainBackupProcMWF ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Original SQL ===== <code sql> create procedure "pears"."MainBackupProcMWF"() begin declare "ValidText" long varchar; declare "LogText" long varchar; declare "FailureCode" char(20); declare "NewLine" char(2); return; set "NewLine" = "char"(13)+"char"(10); set "FailureCode" = '00000'; select "validationresults"() into "validtext"; set "logtext" = 'Validation: '+"isnull"("validtext",'')+"newline"+'Backup: '; commit work; begin backup database directory 'D:\\IQXDBBackup\\SQLA16BlankDB\\MWF' transaction log truncate // Edit here as appropriate exception when others then set "FailureCode" = sqlstate end; if "failurecode" = '00000' then set "logtext" = "logtext"+'Successfully Completed' else set "logtext" = "logtext"+"string"('Failed with error ',"failurecode") end if; insert into "iqbackuplog"( "timecompleted","description" ) values( current timestamp,"logtext" ) end go COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."MainBackupProcMWF" IS {create PROCEDURE pears."MainBackupProcMWF"() begin declare "ValidText" long varchar; declare "LogText" long varchar; declare "FailureCode" char(20); declare "NewLine" char(2); return; set "NewLine" = "char"(13)+"char"(10); set "FailureCode" = '00000'; select "validationresults"() into "validtext"; set "logtext" = 'Validation: '+"isnull"("validtext",'')+"newline"+'Backup: '; commit work; begin backup database directory 'D:\\IQXDBBackup\\SQLA16BlankDB\\MWF' transaction log truncate // Edit here as appropriate exception when others then set "FailureCode" = sqlstate end; if "failurecode" = '00000' then set "logtext" = "logtext"+'Successfully Completed' else set "logtext" = "logtext"+"string"('Failed with error ',"failurecode") end if; insert into "iqbackuplog"( "timecompleted","description" ) values( current timestamp,"logtext" ) end } </code> database/procedures/pears_mainbackupprocmwf.txt Last modified: 2026/08/07 19:24by 127.0.0.1