Chapter 10 Generating a Database from a PDM
In a database creation script, you can insert the following scripts:
| Script | Where it is inserted | 
|---|---|
| Begin script | Before the command that creates the database | 
| End script | After the last command in the database creation script | 
You can use the following variables in these scripts:
| Variable | Description | 
|---|---|
| %DATABASE% | Name of the current PDM | 
| %DATE% | Date of script generation | 
| %DBMSNAME% | Name of the DBMS for the target database | 
| %NAMESCRIPT% | Filename of script file | 
| %PATHSCRIPT% | Filename and path of script file | 
| %STARTCMD% | Command that runs the script | 
| %AUTHOR% | Author of the current model | 
 To insert begin and end scripts for database creation:
 To insert begin and end scripts for database creation:
 
 
| Copyright (C) 2005. Sybase Inc. All rights reserved. |   | |