>SQLSETPROP(nhandle,'TRANSACTIONS',2) && start manual transactions >SQLSETPROP(nHandle,'Asynchronous',.T.) && use asynchronous processing > >lcCmd = "A delete followed by an insert to update a data record" > >lnSuccess = 0 >DO WHILE lnSuccess = 0 > lnSuccess = SQLEXEC(nHandle,lcCmd,'SQLResults') >ENDDO > >IF lnSuccess < 1 > SQLROLLBACK(nHandle) >ELSE > SQLCOMMIT(nHandle) >ENDIF > >SQLSETPROP(nhandle,'TRANSACTIONS',1) && end manual transactions >>
>Server: Msg 8152, Level 16, State 9, Line 1 >String or binary data would be truncated. >The statement has been terminated. >>