Let Flex2SQL Perform the Tasks¶
Connect to the target server (File > Login).
Optionally, set global migration preferences (Tools > Preferences).
Open the DataFlex workspace or filelist (File > Open) and select the file(s) to be migrated.
Select Convert Database, choose Create Table Only and then click Convert or, if multiple files are selected, Convert All.
This creates an empty SQL table(s) and the .INT file(s), <filename>.int.
Select Database > Create Text File for server-specific Loader.
Note: The displayed dialog box is server-specific. Examples that follow are for an Oracle database.
To save the data in a text file, select the Export Data & Control File option. Otherwise, only the controlling scripts and batch (.bat) file are generated. You can change the location of the text file and select whether you want a comma delimited file or a fixed format file.
Display the Loader Options tab and choose settings to be saved in the control file.
Click Generate or, if multiple files are selected, Generate All.
During the generation process, three files are created: <filename>.txt, loader.bat, <filename>.ctl. The <filename>.txt file contains the data in text format. Loader.bat is a batch file that contains the loader calls for each migrated file. The <filename>.ctl file contains control information used by the loader.
The DBA runs the loader.bat file to load the text data.
Run the Analyze After Loader option for each migrated file (Database > Analyze after server-specific Loader).
See Also: High-Speed Script Based Migration - Let Flex2SQL Generate Scripts for the DBA