次の方法で共有


User.DefaultSchema プロパティ

データベース ユーザーの既定のスキーマを取得します。

この API は、CLS に準拠していません。 

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
<SfcReferenceAttribute(GetType(Schema), "Server[@Name = '{0}']/Database[@Name = '{1}']/Schema[@Name = '{2}']",  _
    )> _
<CLSCompliantAttribute(False)> _
Public Property DefaultSchema As String 
    Get 
    Set
'使用
Dim instance As User 
Dim value As String 

value = instance.DefaultSchema

instance.DefaultSchema = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
[SfcReferenceAttribute(typeof(Schema), "Server[@Name = '{0}']/Database[@Name = '{1}']/Schema[@Name = '{2}']", 
    )]
[CLSCompliantAttribute(false)]
public string DefaultSchema { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
[SfcReferenceAttribute(typeof(Schema), L"Server[@Name = '{0}']/Database[@Name = '{1}']/Schema[@Name = '{2}']", 
    )]
[CLSCompliantAttribute(false)]
public:
virtual property String^ DefaultSchema {
    String^ get () sealed;
    void set (String^ value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
[<SfcReferenceAttribute(typeof(Schema), "Server[@Name = '{0}']/Database[@Name = '{1}']/Schema[@Name = '{2}']", 
    )>]
[<CLSCompliantAttribute(false)>]
abstract DefaultSchema : string with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
[<SfcReferenceAttribute(typeof(Schema), "Server[@Name = '{0}']/Database[@Name = '{1}']/Schema[@Name = '{2}']", 
    )>]
[<CLSCompliantAttribute(false)>]
override DefaultSchema : string with get, set
final function get DefaultSchema () : String 
final function set DefaultSchema (value : String)

プロパティ値

型: System.String
データベース ユーザーの既定のスキーマを示す String 値です。

実装

IUserOptions.DefaultSchema

使用例

ユーザー、ロール、およびログインの管理

関連項目

参照

User クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

プリンシパル (データベース エンジン)

CREATE USER (Transact-SQL)