? datetime(), "inserting " + pcTable glZapOk = glZapOk and ; ( oSystem.RunSQL( "insert into " + pcTable + " select * from imptemp.." + pcTable ) > 0 ) ? datetime(), "deleting " + pcTable glZapOk = glZapOk and ; ( oSystem.RunSQL( "delete from imptemp.." + pcTable ) > 0 )the imptemp tables are BCP'd into we basically don't give a rip about the logs on that database. then the above insert/delete is run to move the data from the imptemp database to the prod db.
lcWhere = " where callno in ( select callno from #Loadable )" && enforce the same where clause for the next several SQLs llDeleteOk = llDeleteOk and ( this.RunSQL( ; "insert into intcall" +; " select * from impintcall" + lcWhere ) > 0 ) llDeleteOk = llDeleteOk and ( this.RunSQL( ; "insert into response" +; " select * " + ; " from impresponse" + lcWhere ) > 0 ) if ( llDeleteOk ) this.RunSQL( "delete from impintcall" + lcWhere ) this.RunSQL( "delete from impresponse" + lcWhere ) endif#Loadable contains the PK vaules for the rows that are being moved by the process.