Share via


Table 類別

Table 物件代表 SQL Server 資料表。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<PhysicalFacetAttribute> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class Table _
    Inherits TableViewBase _
    Implements ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable,  _
    IAlterable, IDroppable, IRenamable, ITableOptions, IDmfFacet
'用途
Dim instance As Table
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
public sealed class Table : TableViewBase, 
    ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, IAlterable, 
    IDroppable, IRenamable, ITableOptions, IDmfFacet
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
public ref class Table sealed : public TableViewBase, 
    ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, IAlterable, 
    IDroppable, IRenamable, ITableOptions, IDmfFacet
[<SealedAttribute>]
[<PhysicalFacetAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type Table =  
    class
        inherit TableViewBase
        interface ISfcSupportsDesignMode
        interface IColumnPermission
        interface IObjectPermission
        interface ICreatable
        interface IAlterable
        interface IDroppable
        interface IRenamable
        interface ITableOptions
        interface IDmfFacet
    end
public final class Table extends TableViewBase implements ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, IAlterable, IDroppable, IRenamable, ITableOptions, IDmfFacet

Table 型別公開下列成員。

建構函式

  名稱 說明
公用方法 Table() () () () 初始化 Table 類別的新執行個體。
公用方法 Table(Database, String) 初始化位於指定的資料庫上並擁有指定名稱之 Table 類別的新執行個體。
公用方法 Table(Database, String, String) 初始化位於指定的資料庫上且擁有指定名稱和結構描述之 Table 類別的新執行個體。

上層

屬性

  名稱 說明
公用屬性 AnsiNullsStatus 取得 Boolean 屬性值,指定是否啟用資料表上的 ISO NULL 處理。
公用屬性 ChangeTrackingEnabled 指定資料表是否啟用變更追蹤。
公用屬性 Checks 表示 Check 物件的集合。每個 Check 物件代表資料表上定義的檢查條件約束。
公用屬性 Columns 取得資料行集合。 (繼承自 TableViewTableTypeBase。)
公用屬性 CreateDate 取得建立資料表的日期和時間。
公用屬性 DataSpaceUsed 取得受參考資料表的資料列所使用的儲存空間 (以 KB 為單位)。
公用屬性 DateLastModified 取得上一次修改資料表的日期和時間。
公用屬性 Events 取得與資料表相關聯的事件。
受保護的屬性 ExecuteForScalar 取得或設定 Boolean 屬性值,指定物件是否設定為執行純量選項。 (繼承自 SqlSmoObject。)
公用屬性 ExtendedProperties 取得擴充屬性集合。 (繼承自 TableViewTableTypeBase。)
公用屬性 FakeSystemTable 取得指定資料表是否參考系統資料表的 Boolean 值。
公用屬性 FileGroup 取得或設定用於儲存資料表的檔案群組。
公用屬性 FileStreamFileGroup 取得或設定 FILESTREAM 資料的檔案群組。
公用屬性 FileStreamPartitionScheme 取得或設定 FILESTREAM 資料的資料分割配置。
公用屬性 ForeignKeys 表示 ForeignKey 物件的集合。每個 ForeignKey 物件代表資料表上定義的外部索引鍵。
公用屬性 FullTextIndex Gets the full text index on the table or view. (繼承自 TableViewBase。)
公用屬性 HasAfterTrigger 取得 Boolean 屬性值,指定資料表是否有任何 After 觸發程序。
公用屬性 HasClusteredIndex 取得 Boolean 屬性值,指定資料表是否有叢集索引。
公用屬性 HasCompressedPartitions 取得值,指出資料表是否使用壓縮資料分割。
公用屬性 HasDeleteTrigger 取得 Boolean 屬性值,指定資料表是否有 Delete 觸發程序。
公用屬性 HasIndex 取得 Boolean 屬性值,指定資料表是否至少有一個索引。
公用屬性 HasInsertTrigger 取得 Boolean 屬性值,指定資料表是否有 Insert 觸發程序。
公用屬性 HasInsteadOfTrigger 取得 Boolean 屬性值,指定資料表是否有任何 Instead Of 觸發程序。
公用屬性 HasUpdateTrigger 取得 Boolean 屬性值,指定資料表是否有 Update 觸發程序。
公用屬性 ID 取得可唯一識別資料表的識別碼值。
公用屬性 Indexes 取得資料表中集合的指定索引。 (覆寫 TableViewTableTypeBase. . :: . .Indexes。)
公用屬性 IndexSpaceUsed 取得索引使用的空間 (以 KB 為單位)。
公用屬性 IsIndexable 取得 Boolean 屬性值,指定是否可在資料表上放置索引。
公用屬性 IsPartitioned 取得 Boolean 屬性值,指定資料表是否已分割。
公用屬性 IsSchemaOwned 取得 Boolean 屬性值,指定資料表結構描述是否由人擁有。
公用屬性 IsSystemObject 取得 Boolean 屬性值,指定資料表是否為系統物件。
受保護的屬性 IsTouched 取得 Boolean 屬性值,指定物件屬性是否已更新但尚未保存在伺服器上。 (繼承自 SqlSmoObject。)
公用屬性 IsVarDecimalStorageFormatEnabled 指定是否啟用 Vardecimal 儲存。
公用屬性 LockEscalation 取得或設定資料表上使用之鎖定擴大的類型。
公用屬性 MaximumDegreeOfParallelism 取得或設定在包括資料表的平行計畫執行中,所使用的最大處理器數目。
公用屬性 Name 取得或設定 String 值,這個值指定檢視資料表類型的名稱。 (繼承自 TableViewTableTypeBase。)
受保護的屬性 ObjectInSpace 取得 Boolean 屬性值,指定物件是否存在於隔離中,或是直接或間接連接至 SQL Server 執行個體。 (繼承自 SqlSmoObject。)
公用屬性 OnlineHeapOperation 取得或設定 Boolean 值,這個值會決定資料表是否支援線上堆積或索引作業。
公用屬性 Owner 取得或設定資料表的擁有者。
公用屬性 Parent 取得 Database 物件,該物件為 Table 物件的父系。
公用屬性 PartitionScheme 取得或設定資料表所設定之資料分割配置的名稱。
公用屬性 PartitionSchemeParameters 表示 PartitionSchemeParameter 物件的集合。每個 PartitionSchemeParameter 物件代表在資料表上定義的資料分割配置參數。
公用屬性 PhysicalPartitions 取得用於儲存資料表資料的實體資料分割。
公用屬性 Properties 取得代表物件屬性的 Property 物件集合。 (繼承自 SqlSmoObject。)
公用屬性 QuotedIdentifierStatus 取得或設定 Boolean 屬性值,指定以雙引號分隔的識別碼是否為 Transact-SQL 保留的關鍵字,或包含 Transact-SQL 語法規則通常不允許的字元。
公用屬性 Replicated 取得 Boolean 屬性,指定是否複寫資料表。
公用屬性 RowCount 取得資料表中的資料列數目。
公用屬性 RowCountAsDouble 取得資料表中為浮點數值的資料列數目。
受保護的屬性 ScalarResult 取得受參考物件的純量結果。 (繼承自 SqlSmoObject。)
公用屬性 Schema 取得或設定 String 值,這個值指定包含檢視資料表類型的結構描述名稱。 (繼承自 TableViewTableTypeBase。)
公用屬性 State Gets the state of the referenced object. (繼承自 SmoObjectBase。)
公用屬性 Statistics Represents a collection of Statistic objects. Each Statistic object represents a statistic counter that is defined on the table or view. (繼承自 TableViewBase。)
公用屬性 TextFileGroup 取得或設定用來維護儲存在資料表內可變長度之長資料的檔案群組。
公用屬性 TrackColumnsUpdatedEnabled 表示 Database Engine 是否追蹤哪些資料行已更新。
公用屬性 Triggers Represents a collection of Trigger objects. Each Trigger object represents a trigger that is defined on the table or view. (繼承自 TableViewBase。)
公用屬性 Urn 取得可唯一識別物件的統一資源名稱 (URN) 位址值。 (繼承自 SqlSmoObject。)
公用屬性 UserData Gets or sets user-defined data associated with the referenced object. (繼承自 SmoObjectBase。)

上層

方法

  名稱 說明
受保護的方法 AddDatabaseContext(StringCollection) 將資料庫內容加入至以 queries 參數來識別的查詢集合。 (繼承自 SqlSmoObject。)
受保護的方法 AddDatabaseContext(StringCollection, ScriptingOptions) 將資料庫內容加入至以 queries 參數來識別的查詢集合,並使用指定的指令碼選項。 (繼承自 SqlSmoObject。)
公用方法 Alter 更新 SQL Server 執行個體上的任何 Table 物件屬性變更。 
受保護的方法 AlterImpl 啟動物件更改事件。 (繼承自 SqlSmoObject。)
受保護的方法 AlterImplFinish 物件更改事件完成時呼叫的方法。 (繼承自 SqlSmoObject。)
受保護的方法 AlterImplInit 初始化物件更改事件時呼叫的方法。 (繼承自 SqlSmoObject。)
受保護的方法 AlterImplWorker 呼叫 Alter 方法。 (繼承自 SqlSmoObject。)
公用方法 AlterWithNoCheck 更新 SQL Server 執行個體上的任何 Table 物件屬性變更,而不先檢查屬性值。 
受保護的方法 AppendCommaText Appends text, optionally separated by a comma. (繼承自 ScriptNameObjectBase。)
受保護的方法 AppendWithCommaText Appends text, optionally separated by a comma. (繼承自 ScriptNameObjectBase。)
受保護的方法 AppendWithOption Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (繼承自 ScriptNameObjectBase。)
受保護的方法 AutoGenerateName Generates a name based on the object Guid. (繼承自 ScriptNameObjectBase。)
受保護的方法 BindDefaultImpl 繫結參數所識別的預設項目。 (繼承自 SqlSmoObject。)
受保護的方法 BindRuleImpl 將規則結構描述繫結至參數所識別的規則和資料行。 (繼承自 SqlSmoObject。)
公用方法 ChangeSchema 變更受參考資料表上的結構描述。
受保護的方法 CheckCollation 檢查 collationName 參數所識別之定序方法的指令碼選項順序。 (繼承自 SqlSmoObject。)
公用方法 CheckIdentityValue 驗證受參考資料表中所有識別欄位的完整性。
受保護的方法 CheckObjectDirty Checks whether object has been modified and not persisted. (繼承自 ScriptNameObjectBase。)
受保護的方法 CheckObjectState() () () () 驗證受參考物件的狀態。 (繼承自 SqlSmoObject。)
受保護的方法 CheckObjectState(Boolean) 驗證受參考物件的狀態,並以選項指定如果還未建立該物件則擲回例外狀況。 (繼承自 SqlSmoObject。)
受保護的方法 CheckObjectStateImpl 檢查 SqlSmoObject 的狀態。 (繼承自 SqlSmoObject。)
公用方法 CheckTable 針對資料表中定義的資料表和索引,測試資料庫頁面的完整性。
公用方法 CheckTableDataOnly 針對資料表中定義的資料表資料,測試資料庫頁面的完整性。
受保護的方法 CheckTextCorectness Checks text for correctness against the parameters. (繼承自 ScriptNameObjectBase。)
受保護的方法 CheckTextModeSupport Checks mode of support. (繼承自 ScriptNameObjectBase。)
受保護的方法 CheckVersion100 檢查 SQL Server 的版本是否為 SQL Server 2008。 (繼承自 SqlSmoObject。)
受保護的方法 CheckVersion80 檢查 SQL Server 2000 上物件的有效性。 (繼承自 SqlSmoObject。)
受保護的方法 CheckVersion80SP3 檢查 SQL Server 2000 SP3 上物件的有效性。 (繼承自 SqlSmoObject。)
受保護的方法 CheckVersion90 檢查 SQL Server 2005 上物件的有效性。 (繼承自 SqlSmoObject。)
受保護的方法 CheckVersionBelow90 檢查 SQL Server 的版本是否在 SQL Server 2005 之前。 (繼承自 SqlSmoObject。)
受保護的方法 CleanObject Cleans the referenced object. (繼承自 ScriptNameObjectBase。)
公用方法 Create 在 SQL Server 的執行個體上建立資料表,如 Table 物件所定義。
受保護的方法 CreateImpl 使用指令碼選項建立物件。 (繼承自 SqlSmoObject。)
受保護的方法 CreateImplFinish 建立事件完成時呼叫的方法。 (繼承自 SqlSmoObject。)
受保護的方法 CreateImplInit 初始化建立事件時呼叫的方法。 (繼承自 SqlSmoObject。)
公用方法 Deny(ObjectPermissionSet, String) 拒絕資料表上所指定被授與者的指定權限集。
公用方法 Deny(ObjectPermissionSet, array<String> [] () [] []) 拒絕資料表上所指定被授與者的指定權限集。
公用方法 Deny(ObjectPermissionSet, String, Boolean) 拒絕所指定被授與者在資料表上的指定權限集,以及該被授與者授與其他使用者的指定權限集。
公用方法 Deny(ObjectPermissionSet, String, array<String> [] () [] []) 拒絕所指定被授與者在資料表上所指定資料行的指定權限集。
公用方法 Deny(ObjectPermissionSet, array<String> [] () [] [], Boolean) 拒絕所指定被授與者在資料表上的指定權限。
公用方法 Deny(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) 拒絕所指定被授與者在資料表上所指定資料行的指定權限集。
公用方法 Deny(ObjectPermissionSet, String, array<String> [] () [] [], Boolean) 拒絕所指定被授與者在資料表上所指定資料行的指定權限集,以及該被授與者授與其他使用者的指定權限集。
公用方法 Deny(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean) 拒絕所指定被授與者在資料表上所指定資料行的指定權限集,以及該被授與者授與其他使用者的指定權限集。
公用方法 DisableAllIndexes 停用資料表的所有索引。
公用方法 Discover 探索 Object 類型的清單。 (繼承自 SqlSmoObject。)
公用方法 Drop 從資料庫中移除資料表。
受保護的方法 DropImpl 卸除 SqlSmoObject。 (繼承自 SqlSmoObject。)
受保護的方法 DropImplWorker 呼叫 Drop 方法。 (繼承自 SqlSmoObject。)
公用方法 EnableAllIndexes 啟用所有索引。
公用方法 EnumColumnPermissions() () () () 列舉資料表的資料行權限清單。
公用方法 EnumColumnPermissions(String) 列舉資料表上所指定被授與者的資料行權限清單。
公用方法 EnumColumnPermissions(ObjectPermissionSet) 列舉資料表上所指定權限的資料行權限清單。
公用方法 EnumColumnPermissions(String, ObjectPermissionSet) 列舉資料表上所指定被授與者及所指定權限的資料行權限清單。
公用方法 EnumForeignKeys 列舉在其中資料表是以外部索引鍵做為參考形式的主索引鍵清單。
公用方法 EnumFragmentation() () () () Enumerates information about fragments of data that are stored in a table or view. (繼承自 TableViewBase。)
公用方法 EnumFragmentation(FragmentationOption) Enumerates information about fragments of data that are stored in a table or view with the option to specify how detailed the results should be. (繼承自 TableViewBase。)
公用方法 EnumFragmentation(FragmentationOption, Int32) Enumerates information about fragments of data that are stored in a table or view on a specified partition, and with the option to specify how detailed the results should be. (繼承自 TableViewBase。)
公用方法 EnumLastStatisticsUpdates() () () () 列舉最新統計資料更新的相關資訊清單。
公用方法 EnumLastStatisticsUpdates(String) 列舉所指定統計資料計數器之最新統計資料更新的相關資訊清單。
公用方法 EnumObjectPermissions() () () () 列舉資料表的物件權限清單。
公用方法 EnumObjectPermissions(String) 列舉資料表上所指定被授與者的物件權限清單。
公用方法 EnumObjectPermissions(ObjectPermissionSet) 列舉資料表上所指定權限的物件權限清單。
公用方法 EnumObjectPermissions(String, ObjectPermissionSet) 列舉資料表上所指定被授與者及所指定權限的物件權限清單。
公用方法 EnumScript() () () () 傳回 IEnumerable<string> 物件,這個物件具有所傳遞物件的指令碼。
公用方法 EnumScript(ScriptingOptions) 傳回 IEnumerable<string> 物件,這個物件具有所傳遞物件的指令碼。
受保護的方法 EnumScriptImpl 列舉 so 參數所指定的指令碼。 (繼承自 SqlSmoObject。)
受保護的方法 EnumScriptImplWorker 呼叫方法,用以列舉 so 參數所指定的指令碼。 (繼承自 SqlSmoObject。)
受保護的方法 EnumScriptImplWorkerSOChanged 傳回 IEnumerable 字串,描述物件的指令碼選項。 (繼承自 SqlSmoObject。)
公用方法 Equals (繼承自 Object。)
受保護的方法 ExecuteNonQuery (繼承自 SqlSmoObject。)
受保護的方法 Finalize (繼承自 Object。)
受保護的方法 ForceTextModeOnTextBody Enforces text mode on the text body. (繼承自 ScriptNameObjectBase。)
受保護的方法 FormatSqlVariant 將物件格式化為 SqlVariant 類型。 (繼承自 SqlSmoObject。)
受保護的方法 GenerateDataSpaceFileStreamScript 產生指令碼來建立資料檔案。 (繼承自 SqlSmoObject。)
受保護的方法 GenerateDataSpaceScript 產生指令碼來配置資料檔中的空間。 (繼承自 SqlSmoObject。)
受保護的方法 GetBindDefaultScript 取得指令碼,用以繫結由 defSchema 和 defName 參數所指定的預設值。 (繼承自 SqlSmoObject。)
受保護的方法 GetBindRuleScript 取得指令碼,用以指定繫結規則。 (繼承自 SqlSmoObject。)
受保護的方法 GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) 指派 SqlSmoObject 的布林參數。 (繼承自 SqlSmoObject。)
受保護的方法 GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) 指派 SqlSmoObject 的布林屬性。 (繼承自 SqlSmoObject。)
受保護的方法 GetBraketNameForText Gets the bracket name. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetDateTimeParameter 指派 SqlSmoObject 的日期時間屬性。 (繼承自 SqlSmoObject。)
受保護的方法 GetDateTimeParameterAsInt 如果 SqlSmoObject 的日期時間屬性不是 null,則將該日期時間屬性指派為整數值。 (繼承自 SqlSmoObject。)
受保護的方法 GetDBName 取得與物件相關聯的資料庫名稱。 (繼承自 SqlSmoObject。)
受保護的方法 GetEnumParameter 指派 SqlSmoObject 的列舉屬性。 (繼承自 SqlSmoObject。)
受保護的方法 GetFragOptionString 取得以字串值表示的 FragmentationOption 物件。 (繼承自 SqlSmoObject。)
受保護的方法 GetGuidParameter 指派 SqlSmoObjectGuid 屬性。 (繼承自 SqlSmoObject。)
公用方法 GetHashCode (繼承自 Object。)
受保護的方法 GetIsSystemNamed Gets a Boolean value that specifies whether the system is named. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetIsTextDirty Determines whether the text value is consistent with stored value. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) 指派 SqlSmoObject 的參數。 (繼承自 SqlSmoObject。)
受保護的方法 GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) 指派 SqlSmoObject 的參數。 (繼承自 SqlSmoObject。)
受保護的方法 GetPropValue 取得 SqlSmoObject 物件的屬性值。 (繼承自 SqlSmoObject。)
受保護的方法 GetPropValueOptional 取得 SqlSmoObject 物件的屬性值。 (繼承自 SqlSmoObject。)
受保護的方法 GetPropValueOptionalAllowNull 取得 SqlSmoObject 物件的屬性值。 (繼承自 SqlSmoObject。)
受保護的方法 GetRealValue 取得 SqlSmoObject 物件的屬性值。 (繼承自 SqlSmoObject。)
受保護的方法 GetScriptIncludeExists Gets the script including the test for existence of type being scripted. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetScriptingOptionsForCreate 取得 SqlSmoObject 物件的 ScriptingOptions。 (繼承自 SqlSmoObject。)
受保護的方法 GetServerName 取得物件相關聯之 SQL Server 執行個體的名稱。 (繼承自 SqlSmoObject。)
受保護的方法 GetServerObject 取得 SqlSmoObject 物件的伺服器。 (繼承自 SqlSmoObject。)
受保護的方法 GetSqlServerVersionName 取得物件相關聯之 SQL Server 執行個體的版本名稱。 (繼承自 SqlSmoObject。)
受保護的方法 GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) 指派 SqlSmoObject 物件的字串參數。 (繼承自 SqlSmoObject。)
受保護的方法 GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) 指派 SqlSmoObject 物件的字串參數。 (繼承自 SqlSmoObject。)
受保護的方法 GetTextBody() () () () Returns the text body. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextBody(Boolean) Returns the text body. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) Gets the text of script object. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextHeader Returns the text header. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextMode Determines whether the script name is using text mode. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextProperty(String) Gets the property as text. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextProperty(String, ScriptingOptions) Gets the property as text. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTimeSpanParameterAsInt 指派 SqlSmoObject 物件的時間範圍參數。 (繼承自 SqlSmoObject。)
公用方法 GetType (繼承自 Object。)
受保護的方法 GetUrnRecursive(StringBuilder) 指派 SqlSmoObject 物件的 Urn 物件。 (繼承自 SqlSmoObject。)
受保護的方法 GetUrnRecursive(StringBuilder, UrnIdOption) 指派 SqlSmoObject 物件的 Urn 物件。 (繼承自 SqlSmoObject。)
公用方法 Grant(ObjectPermissionSet, String) 在資料表上將指定的權限集授與指定的被授與者。
公用方法 Grant(ObjectPermissionSet, array<String> [] () [] []) 在資料表上將指定的權限集授與指定的被授與者。
公用方法 Grant(ObjectPermissionSet, String, Boolean) 授與指定的被授與者對資料表上所指定權限的存取權,以及將存取權授與其他使用者的能力。
公用方法 Grant(ObjectPermissionSet, String, array<String> [] () [] []) 授與指定的被授與者存取資料表上所指定資料行的指定權限。
公用方法 Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean) 授與指定的被授與者對資料表上所指定權限的存取權,以及將存取權授與其他使用者的能力。
公用方法 Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) 授與被授與者對資料表上所指定資料行的指定權限集。
公用方法 Grant(ObjectPermissionSet, String, Boolean, String) 授與指定的權限集給被授與者,以及在資料表上將所擔任角色的權限集授與其他使用者的能力。
公用方法 Grant(ObjectPermissionSet, String, array<String> [] () [] [], Boolean) 授與指定的權限給被授與者,以及將資料表上所指定資料行的權限集授與其他使用者的能力。
公用方法 Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean, String) 授與指定的權限集給被授與者,以及在資料表上將所擔任角色的權限集授與其他使用者的能力。
公用方法 Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean) 授與指定的權限集給被授與者,以及將資料表上所指定資料行的權限集授與其他使用者的能力。
公用方法 Grant(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, String) 授與指定的權限集給被授與者,以及將所擔任角色在資料表上所指定資料行的權限集授與其他使用者的能力。
公用方法 Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, String) 授與指定的權限集給被授與者,以及將所擔任角色在資料表上所指定資料行的權限集授與其他使用者的能力。
受保護的方法 ImplInitialize 初始化 SqlSmoObject 物件的欄位。 (繼承自 SqlSmoObject。)
公用方法 Initialize() () () () 初始化物件,並強制載入屬性。 (繼承自 SqlSmoObject。)
公用方法 Initialize(Boolean) 初始化物件,並強制載入屬性。 (繼承自 SqlSmoObject。)
受保護的方法 IsObjectDirty Determines whether the referenced object is consistent with the stored object. (繼承自 ScriptNameObjectBase。)
受保護的方法 IsObjectInitialized 驗證物件是否已初始化。 (繼承自 SqlSmoObject。)
受保護的方法 IsObjectInSpace 驗證物件是否已隔離,或是連接至 SQL Server 的執行個體。 (繼承自 SqlSmoObject。)
受保護的方法 IsVersion80SP3 判斷 SQL Server 的版本是否為 SQL Server 2000 SP3。 (繼承自 SqlSmoObject。)
受保護的方法 IsVersion90AndAbove 判斷 SQL Server 的版本是否為 SQL Server 2005 或更新版本。 (繼承自 SqlSmoObject。)
受保護的方法 MarkDropped 將目前物件及其所有子集合的狀態標示為 Dropped。 (繼承自 TableViewTableTypeBase。)
受保護的方法 MarkForDropImpl 設定卸除 SqlSmoState。 (繼承自 SqlSmoObject。)
受保護的方法 MemberwiseClone (繼承自 Object。)
受保護的方法 PostAlter SqlSmoObject 更改後啟動的方法。 (繼承自 SqlSmoObject。)
受保護的方法 PostCreate SqlSmoObject 建立後啟動的方法。 (繼承自 SqlSmoObject。)
受保護的方法 PostDrop SqlSmoObject 卸除後啟動的方法。 (繼承自 SqlSmoObject。)
公用方法 Rebuild() () () () 重建資料表。
公用方法 Rebuild(Int32) 重建指定的資料表資料分割。
公用方法 RebuildIndexes 重建資料表上的索引。
公用方法 RecalculateSpaceUsage 重新計算資料表上所使用的空間。
公用方法 ReCompileReferences Recompiles any view or trigger that depends on the base SMO object. (繼承自 TableViewBase。)
公用方法 Refresh Refreshes the View object or Table object properties. (繼承自 TableViewBase。)
公用方法 Rename 重新命名資料表。
受保護的方法 RenameImpl 僅供參考之用。不支援。我們無法保證未來的相容性。 (繼承自 NamedSmoObject。)
受保護的方法 RenameImplWorker 僅供參考之用。不支援。我們無法保證未來的相容性。 (繼承自 NamedSmoObject。)
受保護的方法 ResetDesignModeScriptingOptions 重設選項,如 options 參數所指定。 (繼承自 ScriptSchemaObjectBase。)
公用方法 Revoke(ObjectPermissionSet, String) 撤銷先前在資料表上授與被授與者的權限集。
公用方法 Revoke(ObjectPermissionSet, array<String> [] () [] []) 撤銷先前在資料表上授與被授與者清單的權限集。
公用方法 Revoke(ObjectPermissionSet, String, array<String> [] () [] []) 撤銷先前在資料表上的指定資料行授與被授與者的權限集。
公用方法 Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) 撤銷先前在資料表上的指定資料行授與被授與者清單的權限集。
公用方法 Revoke(ObjectPermissionSet, String, Boolean, Boolean) 撤銷之前在資料表中授與被授與者的權限集,以及該被授與者對任何其他使用者授與的指定權限集。被授與者也能夠撤銷其他使用者的指定權限集。
公用方法 Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean) 撤銷之前在資料表上授與被授與者的權限集,以及被授與者對任何其他使用者授與的指定權限集。被授與者也能夠撤銷其他使用者的指定權限集。
公用方法 Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) 撤銷之前在資料表中授與被授與者的權限集,以及該被授與者對任何其他使用者授與的指定權限集。被授與者也能夠撤銷其他使用者所擔任角色的指定權限集。
公用方法 Revoke(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, Boolean) 撤銷之前在資料表上指定的資料行授與被授與者的權限集,以及被授與者對任何其他使用者授與的指定權限集。被授與者也能夠撤銷其他使用者所擔任角色的指定權限集。
公用方法 Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean, String) 撤銷之前在資料表上授與被授與者的權限集,以及被授與者對任何其他使用者授與的存取權。被授與者也能夠撤銷其他使用者所擔任角色的指定權限集。
公用方法 Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, Boolean) 撤銷之前在資料表上指定的資料行授與被授與者的權限集,以及被授與者對任何其他使用者授與的指定權限集。被授與者也能夠撤銷其他使用者所擔任角色的指定權限集。
公用方法 Revoke(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, Boolean, String) 撤銷之前在資料表上指定的資料行授與被授與者的權限集,以及該被授與者對任何其他使用者授與的指定權限集。被授與者也能夠撤銷其他使用者所擔任角色的指定權限集。
公用方法 Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, Boolean, String) 撤銷之前授與被授與者對資料表上所指定資料行的權限集,以及該被授與者對任何其他使用者授與的存取權。被授與者也能夠撤銷其他使用者所擔任角色的存取權。
公用方法 Script() () () () 產生可用來重新建立資料庫物件的 Transact-SQL 指令碼。 (繼承自 TableViewTableTypeBase。)
公用方法 Script(ScriptingOptions) 使用指定的指令碼選項來產生可用來重新建立資料庫物件的 Transact-SQL 指令碼。 (繼承自 TableViewTableTypeBase。)
受保護的方法 ScriptAlter 根據參數來更改 SqlSmoObject。 (繼承自 SqlSmoObject。)
受保護的方法 ScriptAnsiQI Scripts the database object in ANSI text. (繼承自 ScriptNameObjectBase。)
受保護的方法 ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (繼承自 NamedSmoObject。)
受保護的方法 ScriptCreate 根據參數來更改 SqlSmoObject。 (繼承自 SqlSmoObject。)
受保護的方法 ScriptDdl 擲回 InvalidSmoOperationException。 (繼承自 SqlSmoObject。)
受保護的方法 ScriptDrop 擲回 InvalidSmoOperationException。 (繼承自 SqlSmoObject。)
受保護的方法 ScriptImpl() () () () 取得 SqlSmoObject 指令碼的集合。 (繼承自 SqlSmoObject。)
受保護的方法 ScriptImpl(ScriptingOptions) 取得 SqlSmoObject 指令碼的集合。 (繼承自 SqlSmoObject。)
受保護的方法 ScriptImplWorker 取得 SqlSmoObject 指令碼的集合。 (繼承自 SqlSmoObject。)
受保護的方法 ScriptInformativeHeaders Scripts the information headers. (繼承自 ScriptNameObjectBase。)
受保護的方法 ScriptOwner Alters the script owner authorization. (繼承自 NamedSmoObject。)
受保護的方法 ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (繼承自 NamedSmoObject。)
受保護的方法 SetCollectionTextMode Sets the collection text mode. (繼承自 ScriptNameObjectBase。)
受保護的方法 SetIsSystemNamed Sets a Boolean value that specifies whether the system is named. (繼承自 ScriptNameObjectBase。)
受保護的方法 SetParentImpl SqlSmoObject 的父系設定為 newParent 參數。 (繼承自 SqlSmoObject。)
受保護的方法 SetSchemaOwned Sets the schema owned value. (繼承自 NamedSmoObject。)
受保護的方法 SetTextBody Specifies the text body. (繼承自 ScriptNameObjectBase。)
受保護的方法 SetTextHeader Specifies the text header. (繼承自 ScriptNameObjectBase。)
受保護的方法 SetTextMode Specifies the text mode. (繼承自 ScriptNameObjectBase。)
受保護的方法 StoreConstraintsFlags 儲存條件約束旗標,如 options 參數所指定。 (繼承自 ScriptSchemaObjectBase。)
公用方法 SwitchPartition(Table) 將資料表的資料分割切換為指定的目標資料表。
公用方法 SwitchPartition(Int32, Table) 將資料表的指定資料分割切換為所指定的目標資料表 (假設目標資料表未分割)。
公用方法 SwitchPartition(Table, Int32) 將資料表切換為指定之目標資料表的指定資料分割編號。
公用方法 SwitchPartition(Int32, Table, Int32) 將資料表的指定來源資料分割切換為指定之目標資料表的指定目標。
受保護的方法 SwitchTextMode Switches the text mode. (繼承自 ScriptNameObjectBase。)
受保護的方法 ThrowIfTextIsDirtyForAlter Throws an exception of text has been modified and not persisted. (繼承自 ScriptNameObjectBase。)
公用方法 ToString 傳回代表受參考物件的 String。 (繼承自 SqlSmoObject。)
受保護的方法 TouchImpl 未實作。 (繼承自 SqlSmoObject。)
公用方法 TruncateData 截斷資料表中的資料。
受保護的方法 UnbindDefaultImpl SqlSmoObject 的預設資料行解除繫結。 (繼承自 SqlSmoObject。)
受保護的方法 UnbindRuleImpl SqlSmoObject 的規則解除繫結。 (繼承自 SqlSmoObject。)
公用方法 UpdateStatistics() () () () Updates statistics for the table or view. (繼承自 TableViewBase。)
公用方法 UpdateStatistics(StatisticsTarget, StatisticsScanType) Updates the statistics for the table or view with the option to specify the target and the type of scan performed. (繼承自 TableViewBase。)
公用方法 UpdateStatistics(StatisticsTarget, StatisticsScanType, Int32) Updates the statistics for the table or view with the option to specify the target, the type of scan performed, and the sample size. (繼承自 TableViewBase。)
公用方法 UpdateStatistics(StatisticsTarget, StatisticsScanType, Int32, Boolean) Updates the statistics for the table or view with the option to specify the target, the type of scan performed, the sample size, and whether to recompute the statistics. (繼承自 TableViewBase。)
公用方法 Validate Validates the state of an object. (繼承自 SmoObjectBase。)

上層

事件

  名稱 說明
公用事件 PropertyChanged 代表屬性變更時所發生的事件。 (繼承自 SqlSmoObject。)
公用事件 PropertyMetadataChanged 代表屬性中繼資料變更時所發生的事件。 (繼承自 SqlSmoObject。)

上層

欄位

  名稱 說明
受保護的欄位 m_ExtendedProperties 代表屬性,此屬性定義為擴充 SqlSmoObject 所提供的屬性。 (繼承自 SqlSmoObject。)
受保護的欄位 singletonParent 代表單一父代。 (繼承自 SqlSmoObject。)

上層

明確 繼承 實作

  名稱 說明
明確介面實作私用方法 IAlienObject. . :: . .Discover 探索任何相依性。不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObject. . :: . .GetDomainRoot 傳回網域的根目錄。 (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObject. . :: . .GetParent 取得此物件的父系。不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObject. . :: . .GetPropertyType 取得指定的屬性類型。 (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObject. . :: . .GetPropertyValue 取得指定的屬性值。 (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObject. . :: . .GetUrn 取得物件的統一資源名稱。不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObject. . :: . .Resolve 取得執行個體,其中包含物件統一資源名稱之物件的相關資訊。 (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObject. . :: . .SetObjectState 將物件狀態設定為指定的 SfcObjectState 值。 (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObject. . :: . .SetPropertyValue 設定屬性值。 (繼承自 SqlSmoObject。)
明確介面實作私用方法 ISfcPropertyProvider. . :: . .GetPropertySet 取得此物件屬性集的介面參考。不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SqlSmoObject。)
明確介面實作私用屬性 ISfcSupportsDesignMode. . :: . .IsDesignMode 僅供參考之用。不支援。我們無法保證未來的相容性。取得 Boolean 值,指出物件是否支援設計模式。

上層

備註

To get Table object properties, users can be a member of the public fixed server role.

To set Table object properties, users must have ALTER permission on the table.

To create a table, users must have CREATE TABLE permission on the parent database and ALTER permission in the schema.

To drop a table, users must have CONTROL permission on the table, or be a member of the db_ddladmin or db_owner fixed database roles.

To grant, deny, or revoke permission on the table to other users, users must have CONTROL permission on the table.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。