ADOを通じて、SQLServerにアクセスでき、対応するSQLステートメントを実行してライブラリとテーブルを構築できます。以下は、sqlserverbooksonlineの関連する定義です。
テーブルの作成:
createTable
[
database_name。[所有者]。
|所有者。
] table_name
(
{
| column_nameascomputed_column_expression
} [、... n]
))
[{filegroup | default}]
[Textimage_on {filegroup | default}]
:: = {column_namedata_type}
[[defaultconstant_expression]
| [ID [(Seed、Increment)[NotForrePlication]]]]
]
[rowguidcol]
[] [... n]
:: = [constraintconstraint_name]
{
[null | notnull]
| [{PrimaryKey |ユニーク}
[クラスター化|クラスター化]
[withfillFactor = fillFactor]
[{filegroup | default}}
]
| [[foreignkey]
参照ref_table [(ref_column)]
[notforreplication]
]
|チェック[notForrePlication]
(logical_expression)
}
:: = [constraintconstraint_name]
{
[{PrimaryKey |ユニーク}
[クラスター化|クラスター化]
{(列[、... n])}
[withfillFactor = fillFactor]
[{filegroup | default}]
]