|
Prototype:
void ddlCompileDBD(
CONTROL *ctl,
char *OptnStr,
char *ArgList);
Permitted values in OptnStr:
/D - delete old database before creating new one;
/N - do not create database
/R - reformat database
/S - recreate database while preserving existing data
/Y - initial create database
/Z - used with /R and /S to preserve indexes;
[this option implies an unverified assumption that
there are no changes to the index configuration]
Form of ArgList: <source-filename> <source-filename> is the name of the source file Refer to the database definition document for the description of the database definition language. Description:
Detailed Description of DBD Compile Process:
Specification of /R, /S and /Z edit rules
/R EDit Rules
For tables:
. Add or delete a table;
. Change table order
. Increase or decrease table size
. Add or delete table TEMP attribute
For columns:
. Add or delete a column [non-virtual or virtual, key or non-key]
. Change column order
. Change column data type or size
. Change key to non-key, non-key to key
. Change virtual to non-virtual, non-virtual to virtual
. Change key attributes
/R EDit Rules with /Z
[Discrete structures are preserved in these cases:]
[NA indicates that there is no issue wrt structures for this operation]
[NS indicates that structure preservation is not supported for this operation]
[PR indicates that structure is preserved]
For tables:
. Add or delete a table; [NA]
. Change table order {NA]
. Increase or decrease table size [NS]
. Add or delete table TEMP attribute [NA]
For columns:
. Add or delete a column [non-virtual or virtual, key or non-key] [NA]
. Change column order [PR]
. Change column data type or size [NS]
. Change key to non-key, non-key to key [NA]
. Change virtual to non-virtual, non-virtual to virtual [PR]
. Change key attributes [NS]
. Innocent bystanders [PR]
/S EDit Rules
For tables:
. Change table name
For columns:
. Change column name
. Change key to non-key, non-key to key
[except not change non-virtual to virtual or virtual to non-virtual]
. Change key attributes
[except not change non-virtual to virtual or virtual to non-virtual]
/S EDit Rules with /Z
[Discrete structures are preserved in these cases:]
[NA indicates that there is no issue wrt structures for this operation]
[NS indicates that structure preservation is not supported for this operation]
[PR indicates that structure is preserved]
For tables:
. Change table name [NA]
For columns:
. Change column name [NS]
. Change key to non-key, non-key to key [NA]
. Change key attributes [NS]
. Innocent bystanders [PR]
|
Copyright © 2019 , WhamTech, Inc. All rights reserved. This
document is provided for information purposes only and the contents hereof are
subject to change without notice. Names may be
trademarks of their respective owners.