I have tried TBufDataset, TMemDatataset and ZMSQL.
Totally impossible to add new field after copying a SQL dataset into any memory dataset.
I am able to add new fields with createdataset, but then i cant load dataset from an SQL dataset like TQuery or ZQUERY.
I gave up using any of them.
I needed to add a row number that not change when sorting. Important for updating in a result dataset.
I made it without using them, but i have spent almost two days trying to get it to work, but no go.
It is only when using copyfromdataset it will not work.
Maybe someone knows how if i need it later.