Freigeben über


IDatabase-Schnittstelle

Represents a SQL Server database. 

Namespace:  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Interface IDatabase _
    Inherits IServerOwnedObject, IDatabaseObject, IMetadataObject
'Usage
Dim instance As IDatabase
public interface IDatabase : IServerOwnedObject, 
    IDatabaseObject, IMetadataObject
public interface class IDatabase : IServerOwnedObject, 
    IDatabaseObject, IMetadataObject
type IDatabase =  
    interface
        interface IServerOwnedObject
        interface IDatabaseObject
        interface IMetadataObject
    end
public interface IDatabase extends IServerOwnedObject, IDatabaseObject, IMetadataObject

Der IDatabase-Typ macht folgende Elemente verfügbar.

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft ApplicationRoles Gets a collection of all application roles that are defined in the database.
Öffentliche Eigenschaft AsymmetricKeys Gets a collection of all asymmetric keys in the database.
Öffentliche Eigenschaft Certificates Gets a collection of all certificates in the database.
Öffentliche Eigenschaft CollationInfo Gets the collation that is used by the database.
Öffentliche Eigenschaft CompatibilityLevel Gets the collation of the database.
Öffentliche Eigenschaft DefaultSchemaName Gets the name of the database default schema.
Öffentliche Eigenschaft IsSystemObject Gets a value that indicates whether this is a system object. (Geerbt von IDatabaseObject.)
Öffentliche Eigenschaft Name Gets the name of the metadata object. (Geerbt von IMetadataObject.)
Öffentliche Eigenschaft Owner Gets the IUser object that represents the database owner.
Öffentliche Eigenschaft Parent Gets the IDatabaseObject object that is the parent of this object. (Geerbt von IDatabaseObject.)
Öffentliche Eigenschaft Roles Gets a collection of all roles that are defined in the database.
Öffentliche Eigenschaft Schemas Gets a collection of all schemas in the database.
Öffentliche Eigenschaft Server Gets the IServer object that owns this object. (Geerbt von IServerOwnedObject.)
Öffentliche Eigenschaft Triggers Gets a collection of all triggers in the database.
Öffentliche Eigenschaft Users Gets a collection of all users in the database.

Zum Anfang