Hello Huan,
3 possible methods exists
1. copy express
2. DI API
3. DTW
The FMS is located to CSHS table, but the query is used inside is loaced in OUQR table, if the FMS is using a query.
The cshs.QueryID is the reference to OUQR table, so when you use the copy express (1), you have to check that the copy express is giving the same Query Id from when the data is imported to the new database.
The correct sql of FMS and Queries:
select * from cshs t0 inner join ouqr t1 on t0.QueryId = t1.Intrnalkey
I am doing on the following way:
1. Using copy express to copy the queries
2. Extracting FMS from the old system for a DTW template (from table CSHS)
3. Cross mapping Query ID-s and checking is they are changed (excel)
4. Remapping old query ID's exported at step (2) table new query id's
5. Using DTW to import them (or DI API = eg DTW uses DI api).
This method is always safe,
Thanks,
János