Since there is no interactive debugger in DMS for writing SQL scripts, you may want to us a third party tool to help you write the SQL. There are many SQL tools available that enable you to write SQL and test the code against a live or test database. If you would like to discuss writing SQL scripts with Dynafact, please feel free to give us a call. (For your information, we use the third party tool Toad for SQL Server found at www.toad.com that also supports Oracle and other products.)
Once you have your SQL tool installed and connected to the database you want to import information from, the following is one method you can use to write the SQL:
Repeat the above steps for each SQL script you want to write for the import.
For importing job if you are not using one or more import SQL scripts, make sure you leave the SQL scripts for these areas blank so the import knows to skip that area of import. For example, if you do not have any Operation User Fields, the SQL script for Operation User Fields must be blank. The DMS import utility knows that a blank SQL script means that there is nothing to import for that particular area of DMS.
Since you can write any number of SQL scripts you want, you may decide to have different scripts update different areas of DMS. For example, you may have one script import all the job and operation information, but not the material details. Once the material has been defined in the host system, you could have another script that imports just material detail. For the material details import, the job SQL script and all other SQL scripts would be blank except for the Material Details SQL script. On the Job SQL tab, just the Script Name and Connection Name would be defined. Each script would then be executed as required by the users.