User.DefaultSchema Propiedad
Gets the default schema for the database user.
Esta API no es compatible con CLS.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
<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
'Uso
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)
Valor de la propiedad
Tipo: System.String
A String value that specifies the default schema for the database user.
Implementa
Ejemplos
Administrar usuarios, roles e inicios de sesión
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo