This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dev:sql:statements:create_environment:home [2010/07/06 22:50] els |
dev:sql:statements:create_environment:home [2012/10/26 15:00] (current) |
||
|---|---|---|---|
| Line 15: | Line 15: | ||
| [ NODE node_name | [ NODE node_name | ||
| [ <PARTITIONED | UNPARTITIONED> ] | [ <PARTITIONED | UNPARTITIONED> ] | ||
| - | [ HOST <host_name | host_ip_address | LOCALHOST> [ PORT port_number ] ] | + | [ HOST host_name PORT port_no ENVIRONMENT "filespec" ] ] |
| - | [ ENVIRONMENT “filespec” ] ] | + | |
| [ SQL_SYNTAX < OMNIDEX | ORACLE | SQLSERVER > ] | [ SQL_SYNTAX < OMNIDEX | ORACLE | SQLSERVER > ] | ||
| [ CENTURY_THRESHOLD year ] | [ CENTURY_THRESHOLD year ] | ||
| IN “filename” /* must be after all previous clauses */ | IN “filename” /* must be after all previous clauses */ | ||
| [WITH options] /* if used, must be the very last clause */ | [WITH options] /* if used, must be the very last clause */ | ||
| + | |||
| ===== Discussion ===== | ===== Discussion ===== | ||
| The CREATE ENVIRONMENT statement can be used in conjunction with the [[dev:sql:statements:drop_environment:home | DROP ENVIRONMENT]] statement but typically the WITH DELETE option is used instead of DROP ENVIRONMENT. | The CREATE ENVIRONMENT statement can be used in conjunction with the [[dev:sql:statements:drop_environment:home | DROP ENVIRONMENT]] statement but typically the WITH DELETE option is used instead of DROP ENVIRONMENT. | ||
| Line 139: | Line 139: | ||
| </code> | </code> | ||
| + | The DROP ENVIRONMENT statement can be used to drop an environment so that the CREATE ENVIRONMENT will not error if an existing environment of that name exists. | ||
| + | |||
| + | The WITH DELETE option on the CREATE ENVIRONMENT statement can be used to accomplish the same thing. | ||
| + | | ||
| ==== With All Clauses ==== | ==== With All Clauses ==== | ||