You can do it using CURSORTOXML() with inline schema
>
>Before I delete a record from a table I want to save it into an audit trail table (just in case). I would like to save the record in the MEMO field of the audit trail table. So I would need to convert just one (current) record to an XML string (in such a way that if I need to in the future, I can convert this XML string from the memo into a cursor). How would you do it? TIA.
--sb--