Proprietà User.DefaultSchema

Gets the default schema for the database user.

Questa API non è conforme a CLS. 

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<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
'Utilizzo
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)

Valore proprietà

Tipo: System.String
A String value that specifies the default schema for the database user.

Implementa

IUserOptions.DefaultSchema

Esempi

Gestione di utenti, ruoli e account di accesso

Vedere anche

Riferimento

User Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Entità (Motore di database)

CREATE USER (Transact-SQL)