Page History
17.5 The RUNSQL Utility
17.5.1 Configuration Notes - Creating Tables and Indexes
All Visual LANSA systems are shipped with a utility named RUNSQL.
...
RUNSQL is a simple program. It has the following positional and non-positional parameters:
1 | The (qualified) name of the .ctd (Common Table Definition) file that contains the definition of the table to be created. Common Table Definition files are created whenever you create a table in your Windows development environment. A Visual LANSA table definition:
Non-Visual LANSA table definition (i.e Imported tables):
|
2 | The name of the database or data source that the table is to be created into. |
3 | Commitment Option. Must be Y or N and indicates whether a commit operation is to be issued after the table has been successfully created. |
4 | Reporting Option. Must be Y, N or F to indicate the level of reporting that RUNSQL should use. |
5 | The type of database. This value is used to locate the database characteristics in the X_DBMENV.DAT file in ...\x_win95\x_lansa. |
6 | The User ID/Password to be used when attempting to connect to the specified database or data source. This parameter is required even when using a Trusted Connection. |
7 | Specifies the directory in which the X_DBMENV.DAT file can be found: |
8 | Optional |
9 | Optional |
10 | Optional N or blank if not used. |
Non-Positional Parameters
OLDCTD= | Old .ctd file name. This is the .ctd file that was last used to create/change the table. The new and the old CTD are compared and any changes or new columns are added to the table without deleting the existing data. |
Note that non-positional parameters can be placed anywhere on the command line separated by spaces from the other arguments.
...