Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » SQL/PSM Functions » LOADINGUPDATES |
LOADINGUPDATES()
BOOLEAN
-- This trigger logs any insert errors that -- occur during a LOAD UPDATES for -- the Customer table into a table called -- LoadErrors CREATE TRIGGER "LogInsertError" ERROR INSERT ON "customer" WHEN LOADINGUPDATES() BEGIN DECLARE ErrorData VARCHAR DEFAULT ''; SET ErrorData = 'Cust #: ' + CAST(NEWROW.CustNo AS VARCHAR); SET ErrorData = ErrorData + 'Name: ' + NEWROW.Company; SET ErrorData = ErrorData + 'Error #: ' + CAST(ERRORCODE() AS VARCHAR); SET ErrorData = ErrorData + 'Error Msg: ' + ERRORMSG(); EXECUTE IMMEDIATE 'INSERT INTO LoadErrors (''Customer'',''INSERT'',''' + ErrorData + ''''; END
Deviation | Details |
Extension | This function is an ElevateDB extension. |
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |