Export (0) Print
Expand All

IDatabase Interface

Represents a SQL Server database. 

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

public interface IDatabase : IServerOwnedObject, 
	IDatabaseObject, IMetadataObject

The IDatabase type exposes the following members.

Public propertyApplicationRolesGets a collection of all application roles that are defined in the database.
Public propertyAsymmetricKeysGets a collection of all asymmetric keys in the database.
Public propertyCertificatesGets a collection of all certificates in the database.
Public propertyCollationInfoGets the collation that is used by the database.
Public propertyCompatibilityLevelGets the collation of the database.
Public propertyDefaultSchemaNameGets the name of the database default schema.
Public propertyIsSystemObjectGets a value that indicates whether this is a system object. (Inherited from IDatabaseObject.)
Public propertyNameGets the name of the metadata object. (Inherited from IMetadataObject.)
Public propertyOwnerGets the IUser object that represents the database owner.
Public propertyParentGets the IDatabaseObject object that is the parent of this object. (Inherited from IDatabaseObject.)
Public propertyRolesGets a collection of all roles that are defined in the database.
Public propertySchemasGets a collection of all schemas in the database.
Public propertyServerGets the IServer object that owns this object. (Inherited from IServerOwnedObject.)
Public propertyTriggersGets a collection of all triggers in the database.
Public propertyUsersGets a collection of all users in the database.

Public methodAccept<T>(IDatabaseObjectVisitor<T>)Accepts a visit from the specified IDatabaseObjectVisitor<T> object. (Inherited from IDatabaseObject.)
Public methodAccept<T>(IMetadataObjectVisitor<T>)Accepts a visit from the specified IMetadataObjectVisitor<T> object. (Inherited from IMetadataObject.)
Public methodAccept<T>(IServerOwnedObjectVisitor<T>)Accepts a visit from the specified IServerOwnedObjectVisitor<T> object. (Inherited from IServerOwnedObject.)
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft