次の方法で共有


Table クラス

Table オブジェクトは、SQL Server のテーブルを表します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

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

説明

Table オブジェクトのプロパティを取得するには、固定サーバー ロール public のメンバでもかまいません。

Table オブジェクト プロパティを設定するには、テーブルに対する ALTER 権限を持っている必要があります。

テーブルを作成するには、親データベースに対する CREATE TABLE 権限およびスキーマでの ALTER 権限が必要です。

テーブルを削除するには、テーブルに対する CONTROL 権限を持っているか、または固定データベース ロール db_ddladmin か db_owner のメンバである必要があります。

他のユーザーに対してテーブルについての権限を許可、拒否、または取り消すには、そのテーブルに対する CONTROL 権限を持っている必要があります。

スレッド セーフ

この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。