من خلال ADO ، يمكن الوصول إلى SQLServer ويمكن تنفيذ عبارات SQL المقابلة لإنشاء مكتبات وجداول. فيما يلي التعريفات ذات الصلة في SQLServerBooksonline.
إنشاء جدول:
createable
[
database_name. [المالك].
| المالك.
] table_name
((
{
| column_nameascomputed_column_expression
} [، ... n]
)
[على {filegroup | default}]
[textimage_on {filegroup | default}]
:: = {column_namedata_type}
[[DefaultConstant_expression]
| [الهوية [(البذور ، الزيادة) [notforreplication]]]]]]
]
[Rowguidcol]
[] [... n]
:: = [constraintconstraint_name]
{
[NULL | NOTNULL]
| [{PrimaryKey | فريد}
[مجموعات | غير مقاس]
[withFillFactor = fillFactor]
[على {filegroup | default}}
]
| [[Foreigney]
ReferencesRef_table [(ref_column)]
[notforreplication]
]
| تحقق [notforreplication]
(logical_expression)
}
:: = [constraintconstraint_name]
{
[{PrimaryKey | فريد}
[مجموعات | غير مقاس]
{(العمود [، ... n])}
[withFillFactor = fillFactor]
[على {filegroup | default}]
]