ผ่าน ADO สามารถเข้าถึง SQLServer ได้และสามารถดำเนินการคำสั่ง SQL ที่สอดคล้องกันเพื่อสร้างไลบรารีและตาราง ต่อไปนี้เป็นคำจำกัดความที่เกี่ยวข้องใน SQLServerBookSonline
สร้างตาราง:
สร้างได้
-
database_name. [เจ้าของ]
| เจ้าของ.
] table_name
-
-
| column_nameascomputed_column_expression
} [, ... n]
-
[บน {filegroup | ค่าเริ่มต้น}]
[textimage_on {filegroup | ค่าเริ่มต้น}]
:: = {column_namedata_type}
[[DefaultConstant_expression]
| [ตัวตน [(เมล็ด, เพิ่ม) [notforreplication]]]]
-
[rowguidcol]
[] [... n]
:: = [constraintConstraint_name]
-
[NULL | NOTNULL]
| [{PrimaryKey | เฉพาะ}
[คลัสเตอร์ | nonclustered]
[WithFillFactor = FillFactor]
[บน {filegroup | ค่าเริ่มต้น}}
-
| []
ReferenceRef_Table [(ref_column)]
[notforreplication]
-
| ตรวจสอบ [NotforReplication]
(logical_expression)
-
:: = [constraintConstraint_name]
-
[{PrimaryKey | ไม่ซ้ำกัน}
[คลัสเตอร์ | nonclustered]
{(คอลัมน์ [, ... n])}
[WithFillFactor = FillFactor]
[บน {filegroup | ค่าเริ่มต้น}]
-