Prior to binary dumping out data, find all float columns and the containing tables, then use the output to generate conversion scripts.
Example:
1. Find all tables that have float columns
select tbl,col from SYSPROGRESS.SYSCOLUMNS where coltype = 'float'.
2. For each
float column, generate a script by querying the original tables.
select 'UPDATE INVOICE set INVOICEAMOUNT =
' + convert('varchar(50)', INVOICEAMOUNT)
+ ' where process_instance_id=' + convert('varchar(50)',PROCESS_INSTANCE_ID) from INVOICE
The result of this query generates one line of script for each record in the table that needs to be run against the target database to fix these fields:
…
UPDATE INVOICE set INVOICEAMOUNT = 15.17 where process_instance_id=3489
UPDATE INVOICE set INVOICEAMOUNT = 904.16 where process_instance_id=3491
UPDATE INVOICE set INVOICEAMOUNT = 3387.69 where process_instance_id=3493
…