Table Object (SQL-DMO)

The Table object exposes the attributes of a single Microsoft® SQL Server™ table.

Remarks

SQL Server Table objects contain columns that define a table, and row data that populates it. Table columns can maintain declarative referential integrity constraints, such as PRIMARY KEY and     FOREIGN KEY. Indexes defined on table columns can enforce a UNIQUE constraint or can provide optimized row access. Tables participate in SQL Server user-based security.

With the Table object, you can:

The Name property of a Table object uses the SQL Server data type sysname. When a server running SQL Server uses quoted identifiers, the Name property string can contain spaces. The value of the Name property is unique for tables with a specific owner within a specific database.

Methods
BeginAlter Method GenerateSQL Method (Table, UserDefinedDatatype)
CancelAlter Method ImportData Method
CheckIdentityValue Method InsertColumn Method
CheckTable Method ListAvailableUniqueIndexesForFullText Method
CheckTableDataOnly Method ListPermissions Method
Deny Method (Table, View) ListUserPermissions Method
DoAlter Method RebuildIndexes Method
DoAlterWithNoCheck Method RecalcSpaceUsage Method
EnumDependencies Method ReCompileReferences Method
EnumLastStatisticsUpdates Method Refresh Method
EnumReferencedKeys Method Remove Method (Objects)
EnumReferencedTables Method Revoke Method (Table, View)
EnumReferencingKeys Method Script Method (Table Object)
EnumReferencingTables Method TruncateData Method
ExportData Method UpdateStatistics Method
FullTextIndexScript Method UpdateStatisticsWith Method (Table)
Grant Method (Table, View)  

Properties
Attributes Property HasIndex Property
CreateDate Property ID Property
DataSpaceUsed Property InAlter Property
FakeSystemTable Property IndexSpaceUsed Property
FileGroup Property Name Property
FullTextCatalogName Property Owner Property (Database Objects)
FullTextIndex Property Rows Property
FullTextIndexActive Property SystemObject Property
FullTextKeyColumn Property TextFileGroup Property
HasClusteredIndex Property UniqueIndexForFullText Property

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.