Database.IsDbDenyDatawriter Property
Gets a Boolean property value that specifies whether the current member is a member of the DbDenyDatawriter database.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Property IsDbDenyDatawriter As Boolean
public bool IsDbDenyDatawriter { get; set; }
public:
property bool IsDbDenyDatawriter {
bool get ();
void set (bool value);
}
/** @property */
public boolean get_IsDbDenyDatawriter ()
/** @property */
public void set_IsDbDenyDatawriter (boolean value)
public function get IsDbDenyDatawriter () : boolean
public function set IsDbDenyDatawriter (value : boolean)
Eigenschaftswert
A Boolean value that specifies whether the current user is a member of the DbDenyDatawriter database role. If True, the current user is a member of the DbDenyDatawriter database role has. If False (default), the current user is a member of the DbDenyDatawriter database role.
Hinweise
Aktualisierter Text:17. Juli 2006
Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.
Beispiel
'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Reference the AdventureWorks database.
Dim db As Database
db = srv.Databases("AdventureWorks")
'Display information about the database.
Console.WriteLine("Is Database snapshot : " + _
db.IsDatabaseSnapshot.ToString)
Console.WriteLine("Is Database snapshot base : " + _
db.IsDatabaseSnapshotBase.ToString)
Console.WriteLine("User is Aministrator : " + _
db.IsDbAccessAdmin.ToString)
Console.WriteLine("User is backup operator : " + _
db.IsDbBackupOperator.ToString)
Console.WriteLine("User is data reader : " + _
db.IsDbDatareader.ToString)
Console.WriteLine("User is data writer : " + _
db.IsDbDatawriter.ToString)
Console.WriteLine("User is DDL administrator : " + _
db.IsDbDdlAdmin.ToString)
Console.WriteLine("User denied data reader : " + _
db.IsDbDenyDatareader.ToString)
Console.WriteLine("User denied data writer : " + _
db.IsDbDenyDatawriter.ToString)
Console.WriteLine("User is database owner : " + _
db.IsDbOwner.ToString)
Console.WriteLine("User security administrator : " + _
db.IsDbSecurityAdmin.ToString)
Console.WriteLine("Full text is enabled : " + _
db.IsFullTextEnabled.ToString)
Console.WriteLine("Database is a mail host : " + _
db.IsMailHost.ToString)
Console.WriteLine("Mirroring is enabled : " + _
db.IsMirroringEnabled.ToString)
Console.WriteLine("Database is a system object : " + _
db.IsSystemObject.ToString)
Console.WriteLine("Database is updateable : " + _
db.IsUpdateable.ToString)
Threadsicherheit
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Plattformen
Entwicklungsplattformen
Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.
Zielplattforme
Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.
Siehe auch
Verweis
Database Class
Database Members
Microsoft.SqlServer.Management.Smo Namespace
Andere Ressourcen
How to: Create, Alter, and Remove a Database in Visual Basic .NET
Fixed Database Roles
Creating, Altering, and Removing Databases
CREATE DATABASE (Transact-SQL)