Database Members
Include Protected Members
Include Inherited Members
The Database object represents a SQL Server database.
The Database type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Database() | Initializes a new instance of the Database class. | |
Database(Server, String) | Initializes a new instance of the Database class on the specified server and with the specified name. |
Top
Methods
Name | Description | |
---|---|---|
AddDatabaseContext(StringCollection) | (Inherited from SqlSmoObject.) | |
Alter() | Updates any Database object property changes on the instance of SQL Server. | |
Alter(TimeSpan) | Updates any Database object property changes on the instance of SQL Server. | |
Alter(TerminationClause) | Updates any Database object property changes on the instance of SQL Server. | |
AlterImpl() | (Inherited from SqlSmoObject.) | |
AlterImplFinish(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | |
AlterImplInit(StringCollection%, ScriptingOptions%) | (Inherited from SqlSmoObject.) | |
AlterImplWorker() | (Inherited from SqlSmoObject.) | |
AppendCommaText(StringBuilder, String, Boolean%, String) | (Inherited from ScriptNameObjectBase.) | |
AppendWithCommaText(StringBuilder, String, Boolean%) | (Inherited from ScriptNameObjectBase.) | |
AppendWithOption(StringBuilder, String, String, Boolean%) | (Inherited from ScriptNameObjectBase.) | |
BindDefaultImpl(String, String, Boolean) | (Inherited from SqlSmoObject.) | |
BindRuleImpl(String, String, Boolean) | (Inherited from SqlSmoObject.) | |
ChangeMirroringState(MirroringOption) | Changes the mirroring configuration as specified by the options. | |
CheckAllocations(RepairType) | Scans all pages of the referenced database and tests pages to help ensure integrity. | |
CheckAllocationsDataOnly() | Scans all pages of the referenced database and tests only the data to help ensure integrity. | |
CheckCatalog() | Tests the integrity of the database catalog. | |
CheckCollation(String, ScriptingOptions) | (Inherited from SqlSmoObject.) | |
CheckIdentityValues() | Verifies the integrity of all identity columns in tables in the database. | |
CheckObjectDirty() | (Inherited from ScriptNameObjectBase.) | |
CheckObjectState() | Validates the state of the referenced object. (Inherited from SqlSmoObject.) | |
CheckObjectState(Boolean) | Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created. (Inherited from SqlSmoObject.) | |
CheckObjectStateImpl(Boolean) | (Inherited from SqlSmoObject.) | |
Checkpoint() | Issues a checkpoint. | |
CheckTables(RepairType) | ||
CheckTables(RepairType, RepairOptions) | ||
CheckTables(RepairType, RepairStructure) | ||
CheckTables(RepairType, RepairOptions, RepairStructure) | ||
CheckTablesDataOnly() | Tests integrity of data in pages that store data for all tables and indexes defined on the tables of the referenced database. | |
CheckTablesDataOnly(RepairOptions) | Tests integrity of data in pages that store data for all tables and indexes defined on the tables of the referenced database, with the specified repair options. | |
CheckTablesDataOnly(RepairStructure) | Tests integrity of data in pages that store data for all tables and indexes defined on the tables of the referenced database with the specified repair structure. | |
CheckTablesDataOnly(RepairOptions, RepairStructure) | Tests integrity of data in pages that store data for all tables and indexes defined on the tables of the referenced database with the specified repair options and repair structure. | |
CheckTextCorectness(String, Boolean, Boolean, array<String[], DdlTextParserHeaderInfo%) | (Inherited from ScriptNameObjectBase.) | |
CheckTextModeSupport() | (Inherited from ScriptNameObjectBase.) | |
CheckVersion100() | (Inherited from SqlSmoObject.) | |
CheckVersion80() | Checks the validity of the object on SQL Server 2000. (Inherited from SqlSmoObject.) | |
CheckVersion80SP3() | Checks the validity of the object on SQL Server 2000 SP3. (Inherited from SqlSmoObject.) | |
CheckVersion90() | Check the validity of the object on SQL Server 2005. (Inherited from SqlSmoObject.) | |
CheckVersionBelow90() | (Inherited from SqlSmoObject.) | |
CleanObject() | Cleans the referenced object. (Inherited from ScriptNameObjectBase.) | |
Create() | Creates a database on the instance of SQL Server as defined by the Database object. | |
Create(Boolean) | Creates a database on the instance of SQL Server as defined by the Database object. | |
CreateImpl() | (Inherited from SqlSmoObject.) | |
CreateImplFinish(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | |
CreateImplInit(StringCollection%, ScriptingOptions%) | (Inherited from SqlSmoObject.) | |
Deny(DatabasePermissionSet, String) | Denies the specified set of permissions for the specified grantee on the database. | |
Deny(DatabasePermissionSet, array<String[]) | Denies the specified set of permissions for the specified grantees on the database. | |
Deny(DatabasePermissionSet, String, Boolean) | Denies the specified set of permissions for the specified grantee and other users who the grantee granted the specified set of permissions on the database. | |
Deny(DatabasePermissionSet, array<String[], Boolean) | Denies the specified set of permissions for the specified grantees and other users who the grantee granted the specified set of permissions on the database. | |
DisableAllPlanGuides() | Disables all Plan Guides in a database. | |
Discover() | (Inherited from SqlSmoObject.) | |
Drop() | Drops the database. | |
DropAllPlanGuides() | Drops all Plan Guides in a database. | |
DropBackupHistory() | Drops the backup history for the database. | |
DropImpl() | (Inherited from SqlSmoObject.) | |
DropImplWorker(Urn%) | (Inherited from SqlSmoObject.) | |
EnableAllPlanGuides() | Enables all Plan Guides in a database. | |
EnumBackupSetFiles() | Returns a DataTable listing files contained in a backup set. | |
EnumBackupSetFiles(Int32) | Returns a Data table that lists the files in a backup set | |
EnumBackupSets() | Returns a DataTable listing the backup sets associated with a database. | |
EnumCandidateKeys() | Enumerates a list of all candidate primary keys in the database, which can be referenced by a foreign key. | |
EnumDatabasePermissions() | Enumerates a list of all permissions in the database. | |
EnumDatabasePermissions(String) | Enumerates a list of permissions in the database for the specified user. | |
EnumDatabasePermissions(DatabasePermissionSet) | Enumerates a list of permissions in the database for the specified permission set. | |
EnumDatabasePermissions(String, DatabasePermissionSet) | Enumerates a list of permissions in the database for the specified user and a specified permission set. | |
EnumLocks() | Enumerates a list of all current locks held on the database. | |
EnumLocks(Int32) | Enumerates a list of current locks held on the database for a specified system process ID. | |
EnumLoginMappings() | Enumerates a list of SQL Server logins for all the users in the database. | |
EnumMatchingSPs(String) | Enumerates a list of stored procedures that contain the specified string in the definition. | |
EnumMatchingSPs(String, Boolean) | Enumerates a list of stored procedures that contain the specified string in the definition. | |
EnumObjectPermissions() | Enumerates a list of permissions for objects in the database. | |
EnumObjectPermissions(String) | Enumerates a list of permissions for objects in the database that belong to the specified user. | |
EnumObjectPermissions(ObjectPermissionSet) | Enumerates a list of permissions for objects in the database limited to the specified permission set. | |
EnumObjectPermissions(String, ObjectPermissionSet) | Enumerates a list of permissions for objects in the database that belong to the specified user and limited to the specified permission set. | |
EnumObjects() | Enumerates a list of objects in the database. | |
EnumObjects(DatabaseObjectTypes) | Enumerates a list of objects in the database. | |
EnumObjects(DatabaseObjectTypes, SortOrder) | Enumerates a list of objects in the database. | |
EnumScriptImpl(ScriptingOptions) | (Inherited from SqlSmoObject.) | |
EnumScriptImplWorker(ScriptingOptions) | (Inherited from SqlSmoObject.) | |
EnumTransactions() | Enumerates a list of open transactions on the database. | |
EnumTransactions(TransactionTypes) | Enumerates a list of open transactions of a specified type on the database. | |
EnumWindowsGroups() | Enumerates a list of Windows groups. | |
EnumWindowsGroups(String) | Enumerates a list of Windows groups for a specified group. | |
Equals(Object) | (Inherited from Object.) | |
ExecuteNonQuery(StringCollection) | Executes a batch in the context of the database where there are no results returned. | |
ExecuteNonQuery(String) | Executes a statement in the context of the database where there are no results returned. | |
ExecuteNonQuery(StringCollection, ExecutionTypes) | Runs a collection of batches in the context of the database where there are no results returned for the specified execution type only. | |
ExecuteNonQuery(String, ExecutionTypes) | Executes a batch in the context of the database where there are no results returned for the specified execution type only. | |
ExecuteWithResults(StringCollection) | Executes a batch in the context of the database where there are results returned. | |
ExecuteWithResults(String) | Executes a collection of batches in the context of the database where there are results returned. | |
Finalize() | (Inherited from Object.) | |
ForceTextModeOnTextBody() | Enforces text mode on the text body. (Inherited from ScriptNameObjectBase.) | |
FormatSqlVariant(Object) | (Inherited from SqlSmoObject.) | |
GenerateDataSpaceFileStreamScript(StringBuilder, ScriptingOptions, Boolean) | (Inherited from SqlSmoObject.) | |
GenerateDataSpaceScript(StringBuilder, ScriptingOptions) | (Inherited from SqlSmoObject.) | |
GetBindDefaultScript(ScriptingOptions, String, String, Boolean) | (Inherited from SqlSmoObject.) | |
GetBindRuleScript(ScriptingOptions, String, String, Boolean) | (Inherited from SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Inherited from SqlSmoObject.) | |
GetBraketNameForText() | (Inherited from ScriptNameObjectBase.) | |
GetDateTimeParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | |
GetDateTimeParameterAsInt(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | |
GetDBName() | Gets the database name that is associated with the object. (Inherited from SqlSmoObject.) | |
GetEnumParameter(StringBuilder, ScriptingOptions, String, String, Type, Int32%) | (Inherited from SqlSmoObject.) | |
GetFragOptionString(FragmentationOption) | (Inherited from SqlSmoObject.) | |
GetGuidParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | |
GetHashCode() | (Inherited from Object.) | |
GetIsTextDirty() | Determines whether the text value is consistent with stored value. (Inherited from ScriptNameObjectBase.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Inherited from SqlSmoObject.) | |
GetPropValue(String) | (Inherited from SqlSmoObject.) | |
GetPropValueOptional(String) | (Inherited from SqlSmoObject.) | |
GetPropValueOptionalAllowNull(String) | (Inherited from SqlSmoObject.) | |
GetRealValue(Property, Object) | (Inherited from SqlSmoObject.) | |
GetScriptIncludeExists(ScriptingOptions, String, Boolean) | (Inherited from ScriptNameObjectBase.) | |
GetScriptingOptionsForCreate() | (Inherited from SqlSmoObject.) | |
GetServerName() | Gets the name of the instance of SQL Server with which the object is associated. (Inherited from SqlSmoObject.) | |
GetServerObject() | (Inherited from SqlSmoObject.) | |
GetSqlServerVersionName() | Gets the version name of the instance of SQL Server with which the object is associated. (Inherited from SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Inherited from SqlSmoObject.) | |
GetTextBody() | Returns the text body. (Inherited from ScriptNameObjectBase.) | |
GetTextBody(Boolean) | Returns the text body. (Inherited from ScriptNameObjectBase.) | |
GetTextForScript(ScriptingOptions, Boolean, array<String[]) | Gets the text for scripting. (Inherited from ScriptNameObjectBase.) | |
GetTextForScript(ScriptingOptions, Boolean, array<String[], Boolean) | (Inherited from ScriptNameObjectBase.) | |
GetTextHeader(Boolean) | Returns the text header. (Inherited from ScriptNameObjectBase.) | |
GetTextMode() | Determines whether the script name is using text mode. (Inherited from ScriptNameObjectBase.) | |
GetTextProperty(String) | (Inherited from ScriptNameObjectBase.) | |
GetTextProperty(String, ScriptingOptions) | (Inherited from ScriptNameObjectBase.) | |
GetTimeSpanParameterAsInt(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | |
GetTransactionCount() | Gets the number of open transactions on the database. | |
GetTransactionCount(TransactionTypes) | Gets the number of open transactions of a specified type on the database. | |
GetType() | (Inherited from Object.) | |
GetUrnRecursive(StringBuilder) | (Inherited from SqlSmoObject.) | |
GetUrnRecursive(StringBuilder, UrnIdOption) | (Inherited from SqlSmoObject.) | |
Grant(DatabasePermissionSet, String) | Grants the specified set of permissions to the specified grantee on the database. | |
Grant(DatabasePermissionSet, array<String[]) | Grants the specified set of permissions to the specified grantees on the database. | |
Grant(DatabasePermissionSet, String, Boolean) | Grants access to the specified permission to the grantee and the ability to grant access to other users on the database. | |
Grant(DatabasePermissionSet, array<String[], Boolean) | Grants access to the specified permission to the grantees and the ability to grant access to other users on the database. | |
Grant(DatabasePermissionSet, String, Boolean, String) | Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the database under an assumed role. | |
Grant(DatabasePermissionSet, array<String[], Boolean, String) | Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the database under an assumed role. | |
ImplInitialize(array<String[], array<OrderBy[]) | (Inherited from SqlSmoObject.) | |
Initialize() | Initializes the object and forces the properties be loaded. (Inherited from SqlSmoObject.) | |
Initialize(Boolean) | Initializes the object and forces the properties be loaded. (Inherited from SqlSmoObject.) | |
IsMember(String) | Determines whether the specified group or role belongs to the database. | |
IsObjectDirty() | Determines whether the referenced object is consistent with the stored object. (Inherited from ScriptNameObjectBase.) | |
IsObjectInitialized() | Verifies whether the object has been initialized. (Inherited from SqlSmoObject.) | |
IsObjectInSpace() | Verifies whether the object is isolated or connected to the instance of SQL Server. (Inherited from SqlSmoObject.) | |
IsVersion80SP3() | (Inherited from SqlSmoObject.) | |
MarkDropped() | (Inherited from SqlSmoObject.) | |
MarkForDropImpl(Boolean) | (Inherited from SqlSmoObject.) | |
MemberwiseClone() | (Inherited from Object.) | |
PostAlter() | (Inherited from SqlSmoObject.) | |
PostCreate() | (Inherited from SqlSmoObject.) | |
PostDrop() | (Inherited from SqlSmoObject.) | |
PrefetchObjects() | Prefetches database objects. | |
PrefetchObjects(Type) | Prefetches database objects of a specified type. | |
PrefetchObjects(Type, ScriptingOptions) | Prefetches database objects of a specified type with scripting options. | |
RecalculateSpaceUsage() | Recalculates space usage. | |
Refresh() | Updates the Database object. (Overrides ScriptNameObjectBase.Refresh().) | |
RemoveFullTextCatalogs() | Removes full-text catalogs from the database. | |
Rename(String) | Renames the database. | |
RenameImpl(String) | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Inherited from NamedSmoObject.) | |
RenameImplWorker(String) | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Inherited from NamedSmoObject.) | |
Revoke(DatabasePermissionSet, String) | Revokes a previously granted set of permissions from a grantee on the database. | |
Revoke(DatabasePermissionSet, array<String[]) | Revokes a previously granted set of permissions from a list of grantees on the database. | |
Revoke(DatabasePermissionSet, String, Boolean, Boolean) | Revokes previously granted permissions from a grantee on the database and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role. | |
Revoke(DatabasePermissionSet, array<String[], Boolean, Boolean) | Revokes previously granted permissions from grantees on the database and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role. | |
Revoke(DatabasePermissionSet, String, Boolean, Boolean, String) | Revokes previously granted permissions from a grantee on the database and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role. | |
Revoke(DatabasePermissionSet, array<String[], Boolean, Boolean, String) | Revokes previously granted permissions from grantees on the database and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role. | |
Script() | Generates a Transact-SQL script that can be used to re-create the database. | |
Script(ScriptingOptions) | Generates a Transact-SQL script that can be used to re-create the database as specified by the script options. | |
ScriptAlter(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | |
ScriptAnsiQI(SqlSmoObject, ScriptingOptions, StringCollection, StringBuilder, Object%, Object%) | (Inherited from ScriptNameObjectBase.) | |
ScriptChangeOwner(StringCollection, ScriptingOptions) | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Inherited from NamedSmoObject.) | |
ScriptCreate(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | |
ScriptDdl(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | |
ScriptDrop(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | |
ScriptImpl() | (Inherited from SqlSmoObject.) | |
ScriptImpl(ScriptingOptions) | (Inherited from SqlSmoObject.) | |
ScriptImplWorker(ScriptingOptions) | (Inherited from SqlSmoObject.) | |
ScriptInformativeHeaders(ScriptingOptions, StringBuilder) | (Inherited from ScriptNameObjectBase.) | |
ScriptRename(StringCollection, ScriptingOptions, String) | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Inherited from NamedSmoObject.) | |
SetCollectionTextMode(Boolean, SmoCollectionBase) | Sets the collection text mode. (Inherited from ScriptNameObjectBase.) | |
SetDefaultFileGroup(String) | Sets the default file group for the database. | |
SetDefaultFileStreamFileGroup(String) | Sets the default filestream group. | |
SetDefaultFullTextCatalog(String) | Sets the default full-text catalog for the database. | |
SetOffline() | Sets the database offline. | |
SetOnline() | Sets the database online. | |
SetOwner(String) | Sets the database owner. | |
SetOwner(String, Boolean) | Sets the database owner. | |
SetParentImpl(SqlSmoObject) | (Inherited from SqlSmoObject.) | |
SetSnapshotIsolation(Boolean) | Sets the snapshot isolation level. | |
SetTextBody(String) | Specifies the text body. (Inherited from ScriptNameObjectBase.) | |
SetTextHeader(String) | Specifies the text header. (Inherited from ScriptNameObjectBase.) | |
SetTextMode(Boolean, array<SmoCollectionBase[]) | Specifies the text mode. (Inherited from ScriptNameObjectBase.) | |
Shrink(Int32, ShrinkMethod) | Shrinks the database. | |
SwitchTextMode(Boolean, array<SmoCollectionBase[]) | Switches the text mode. (Inherited from ScriptNameObjectBase.) | |
ThrowIfTextIsDirtyForAlter() | (Inherited from ScriptNameObjectBase.) | |
ToString() | Returns a String that represents the referenced object. (Inherited from SqlSmoObject.) | |
TouchImpl() | (Inherited from SqlSmoObject.) | |
TruncateLog() | Truncates the database log. | |
UnbindDefaultImpl(Boolean) | (Inherited from SqlSmoObject.) | |
UnbindRuleImpl(Boolean) | (Inherited from SqlSmoObject.) | |
UpdateIndexStatistics() | Updates index statistics. | |
Validate(String, array<Object[]) | (Inherited from SmoObjectBase.) | |
ValidateAllPlanGuides() | Verifies the validity of the execution plans associated with the database. | |
ValidateAllPlanGuides(DataTable%) |
Top
Properties
Name | Description | |
---|---|---|
ActiveConnections | Gets the number of active connections to the database. | |
ActiveDirectory | Gets the information about the Active Directory settings for the database. | |
AnsiNullDefault | Gets or sets AnsiNullDefault Property. | |
AnsiNullsEnabled | Gets or sets the Boolean ANSI_NULLS_ENABLED property value. | |
AnsiPaddingEnabled | Gets or sets the ANSI_PADDING_ENABLED database option is enabled. | |
AnsiWarningsEnabled | Gets or sets the Boolean ANSI_WARNING_ENABLED property value. | |
ApplicationRoles | Represents a collection of ApplicationRole objects. Each ApplicationRole object represents an application role defined on the database. | |
ArithmeticAbortEnabled | Gets or sets the ARITHMETICABORT property value. | |
Assemblies | Represents a collection of SqlAssembly objects. Each SqlAssembly object represents an assembly defined on the database. | |
AsymmetricKeys | Represents a collection of AsymmetricKey objects. Each AsymmetricKey object represents an asymmetric key defined on the database. | |
AutoClose | Gets or sets the AUTOCLOSE database option is set. | |
AutoCreateStatisticsEnabled | Gets a Boolean property value that specifies whether statistics are automatically created for the database. | |
AutoShrink | Gets or sets the AUTO_SHRINK database option. | |
AutoUpdateStatisticsAsync | Gets or sets a property value that specifies whether the AUTOUPDATESTATISTICSASYNC database option is active. | |
AutoUpdateStatisticsEnabled | Gets a Boolean property value that specifies whether statistics are automatically updated for the database. | |
BrokerEnabled | Gets or sets a property value that specifies whether the Service Broker service is enabled. | |
CaseSensitive | Gets a Boolean property value that specifies whether uppercase letters and lowercase letters are evaluated as equal. | |
Certificates | Represents a collection of Certificate objects. Each Certificate object represents a certificate defined on the database. | |
ChangeTrackingAutoCleanUp | Gets or sets a Boolean property value that specifies whether the CHANGE_TRACKING_AUTO_CLEANUP OPTION is enabled. | |
ChangeTrackingEnabled | Gets or sets a property value that specifies whether the CHANGE_TRACKING_VALUE option is enabled | |
ChangeTrackingRetentionPeriod | Gets or sets the CHANGE_TRACKING_RETENTION_PERIOD value. | |
ChangeTrackingRetentionPeriodUnits | Gets or sets the unit type for a retention period value. | |
CloseCursorsOnCommitEnabled | Gets or sets a value that specifies whether the CURSOR_CLOSE_ON_COMMIT database option is active. | |
Collation | Gets or sets the default collation used by the database. | |
CompatibilityLevel | Gets or sets the compatibility level for the database. | |
ConcatenateNullYieldsNull | Gets or sets a property value that specifies whether the CONCAT_NULL_YIELDS_NULL database option is active. | |
CreateDate | Gets the date that the database was created. | |
DatabaseAuditSpecifications | Represents a collection of DatabaseAuditSpecification objects. Each DatabaseAuditSpecification object represents an database audit specification defined on the server. | |
DatabaseEncryptionKey | Gets a DataBaseEncryptionKey datatype. | |
DatabaseGuid | Gets the Guid value that uniquely identifies the database. | |
DatabaseOptions | Gets the DatabaseOptions object that contains configuration options for the database. | |
DatabaseOwnershipChaining | Gets or sets a property value that specifies whether the database ownership chaining is active. | |
DatabaseSnapshotBaseName | Gets the name of the snapshot base for the database. | |
DataSpaceUsage | Gets the space used by the data in the database. | |
DateCorrelationOptimization | Gets or sets a property value that specifies whether the date correlation optimization is active. | |
DboLogin | Gets the Boolean value that specifies whether the current user is logged on as the database owner (DBO). | |
DefaultFileGroup | Gets the default file group used by the database. | |
DefaultFileStreamFileGroup | Gets a DefaultFileStreamFileGroup datatype | |
DefaultFullTextCatalog | Gets the default full-text catalog used by the database. | |
Defaults | Represents a collection of Default objects. Each Default object represents a default defined on the database. | |
DefaultSchema | Gets the default schema of the user. | |
EncryptionEnabled | Gets or sets the ENCRYPTIONENABLED property of a database. | |
Events | Gets the events associated with the database. | |
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Inherited from SqlSmoObject.) | |
ExtendedProperties | Gets the extended properties of the database. | |
ExtendedStoredProcedures | Represents a collection of ExtendedStoredProcedure objects. Each ExtendedStoredProcedure object represents an extended stored procedure defined on the database. | |
FileGroups | Represents a collection of FileGroup objects. Each FileGroup object represents a filegroup defined on the database. | |
FullTextCatalogs | Represents a collection of FullTextCatalog objects. Each FullTextCatalog object represents a full-text catalog defined on the database. | |
FullTextStopLists | Represents a collection of FullTextStopList objects. Each FullTextStopList object represents a full text stop list defined on the server. | |
HonorBrokerPriority | Gets or sets the Boolean value that specifies whether the priority specified by the broker is acknowledged or not. | |
ID | Gets the database ID value that uniquely identifies the database. | |
IndexSpaceUsage | Gets the space used by the indexes in the database. | |
IsAccessible | Gets a Boolean property value that specifies whether the database can be accessed. | |
IsDatabaseSnapshot | Gets a Boolean property value that specifies whether the database is a snapshot database. | |
IsDatabaseSnapshotBase | Gets a Boolean property value that specifies whether the database is the base database for a snapshot database. | |
IsDbAccessAdmin | Gets a Boolean property value that specifies whether the current user is a member of the DbAccessAdmin database role. | |
IsDbBackupOperator | Gets a Boolean property value that specifies whether the current user is a member of the DbBackupOperator database role. | |
IsDbDatareader | Gets a Boolean property value that specifies whether the current user is a member of the DbDatareader database role. | |
IsDbDatawriter | Gets a Boolean property value that specifies whether the current user is a member of the DbDatawriter database role. | |
IsDbDdlAdmin | Gets a Boolean property value that specifies whether the current user is a member of the DbDdlAdmin database role. | |
IsDbDenyDatareader | Gets a Boolean property value that specifies whether the current user is a member of the DbDenyDatareader database role. | |
IsDbDenyDatawriter | Gets a Boolean property value that specifies whether the current member is a member of the DbDenyDatawriter database. | |
IsDbOwner | Gets a Boolean property value that specifies whether the current user is a member of the DbOwner database role. | |
IsDbSecurityAdmin | Gets a Boolean property value that specifies whether the current user is a member of the DbSecurityAdmin database role. | |
IsFullTextEnabled | Gets the Boolean value that specifies whether the database is enabled for full-text search. | |
IsMailHost | Gets the Boolean value that specifies whether the database is configured as a mail host. | |
IsManagementDataWarehouse | Gets the Boolean value that specifies whether the database is a management data warehouse. | |
IsMirroringEnabled | Gets the Boolean value that specifies whether mirroring is enabled on the database. | |
IsParameterizationForced | Gets or sets a property value that specifies whether parameterization is forced on the database. | |
IsReadCommittedSnapshotOn | Gets the Boolean value that specifies whether transactions with the read committed isolation level use row versioning. | |
IsSystemObject | Gets the Boolean value that specifies whether the database is a system object or a user-defined database. | |
IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Inherited from SqlSmoObject.) | |
IsUpdateable | Gets the Boolean value that specifies whether the database can be updated. | |
IsVarDecimalStorageFormatEnabled | Gets or sets a property value that specifies whether VarDecimal storage is enabled. | |
LastBackupDate | Gets the date and time when the database was last backed up. | |
LastDifferentialBackupDate | Gets the date and time when the last differential backup was performed. | |
LastLogBackupDate | Gets the date and time when the transaction log was last backed up. | |
LocalCursorsDefault | Gets the Boolean value that specifies whether the local server cursors are used by default. | |
LogFiles | Represents a collection of LogFile objects. Each LogFile object represents a log file defined on the database. | |
LogReuseWaitStatus | Gets the type of operation on which the reuse of transaction log space is waiting. | |
MasterKey | Gets the master key that is used to encrypt the private keys of certificates. | |
MirroringFailoverLogSequenceNumber | Gets the log sequence number at last failover. | |
MirroringID | Gets the ID value that uniquely identifies the mirroring partnership. | |
MirroringPartner | Gets or sets the address of the Database Engine instance that is the partner server for database mirroring. | |
MirroringPartnerInstance | Gets the instance of SQL Server on which the mirroring partner is configured. | |
MirroringRedoQueueMaxSize | Gets or sets the maximum size of the redo queue of the mirror server instance in KB. | |
MirroringRoleSequence | Gets the role sequence number for primary/backup roles played by the mirroring partners. | |
MirroringSafetyLevel | Gets or sets the mirroring safety level. | |
MirroringSafetySequence | Gets the role sequence number for safety levels for the mirroring partners. | |
MirroringStatus | Gets the status of the database and the database mirroring session. | |
MirroringTimeout | Gets or sets the maximum time, in seconds, that the principal server instance waits for a PING message from another instance in the mirroring session before assuming the other instance is disconnected. | |
MirroringWitness | Gets or sets the name of the Database Engine instance of the database mirroring witness server. | |
MirroringWitnessStatus | Gets the status of the mirroring witness server. | |
Name | Gets or sets the name of the object. (Inherited from NamedSmoObject.) | |
NumericRoundAbortEnabled | Gets or sets a Boolean property value that specifies whether the NUMERIC_ROUNDABORT database option is active. | |
ObjectInSpace | Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Inherited from SqlSmoObject.) | |
Owner | Gets the database principal that is the owner of the database. | |
PageVerify | Specifies the type of page integrity check that SQL Server performs when reading database pages. | |
Parent | Gets the Server object that is the parent of the Database object. | |
PartitionFunctions | Represents a collection of PartitionFunction objects. Each PartitionFunction object represents a partition function defined on the database. | |
PartitionSchemes | Represents a collection of PartitionScheme objects. Each PartitionScheme object represents a partition scheme defined on the database. | |
PlanGuides | Gets Plan Guides associated with a database. | |
PrimaryFilePath | Gets the path and name of the operating system directory that contains the primary file for the database. | |
Properties | Gets a collection of Property objects that represent the object properties. (Inherited from SqlSmoObject.) | |
QuotedIdentifiersEnabled | Gets or sets a Boolean property value that specifies whether identifiers delimited by double quotation marks (" ") are Transact-SQL reserved keywords or contain characters not usually allowed by the Transact-SQL syntax rules. | |
ReadOnly | Gets or sets the Boolean property value that specifies whether the database is read-only. | |
RecoveryForkGuid | Gets the GUID value that specifies the recovery fork on which the database is currently active. | |
RecoveryModel | Gets or sets the recovery model for the database. | |
RecursiveTriggersEnabled | Gets or sets the Boolean value that specifies whether recursive triggers are enabled on the database. | |
ReplicationOptions | Gets the active replication settings for a database, | |
Roles | Represents a collection of DatabaseRole objects. Each DatabaseRole object represents a role defined on the database. | |
Rules | Represents a collection of Rule objects. Each Rule object represents a rule defined on the database. | |
ScalarResult | Gets the scalar result for the referenced object. (Inherited from SqlSmoObject.) | |
Schemas | Represents a collection of Schema objects. Each Schema object represents a schema defined on the database. | |
ServiceBroker | Gets the ServiceBroker object that represents the Service Broker. | |
ServiceBrokerGuid | Gets the Guid object that uniquely identifies the instance of Service Broker. | |
Size | Gets the size of the database in MB. | |
SnapshotIsolationState | Gets the snapshot isolation state for the database. | |
SpaceAvailable | Gets the available space in the database in KB. | |
State | Gets the state of the referenced object. (Inherited from SmoObjectBase.) | |
Status | Gets the database status. | |
StoredProcedures | Represents a collection of StoredProcedure objects. Each StoredProcedure object represents a stored procedure defined on the database. | |
SymmetricKeys | Represents a collection of SymmetricKey objects. Each SymmetricKey object represents a symmetric key defined on the database. | |
Synonyms | Represents a collection of Synonym objects. Each Synonym object represents a synonym defined on the database. | |
Tables | Represents a collection of Table objects. Each Table object represents a table defined on the database. | |
Triggers | Represents a collection of DatabaseDdlTrigger objects. Each DatabaseDdlTrigger object represents a trigger defined on the database. | |
Trustworthy | The TRUSTWORTHY database property is used to indicate whether the instance of SQL Server 2005 trusts the database and the contents within it | |
Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Inherited from SqlSmoObject.) | |
UserAccess | Gets or sets the database user access. | |
UserData | Gets or sets user-defined data associated with the referenced object. (Inherited from SmoObjectBase.) | |
UserDefinedAggregates | Represents a collection of UserDefinedAggregate objects. Each UserDefinedAggregate object represents a user-defined aggregate defined on the database. | |
UserDefinedDataTypes | Represents a collection of UserDefinedDataType objects. Each UserDefinedDataType object represents a user-defined data type on the database. | |
UserDefinedFunctions | Represents a collection of UserDefinedFunction objects. Each UserDefinedFunction object represents a user-defined function on the database. | |
UserDefinedTableTypes | Represents a collection of UserDefinedTableType objects. Each UserDefinedTableType object represents a user-defined table type on the database. | |
UserDefinedTypes | Represents a collection of UserDefinedType objects. Each UserDefinedType object represents a user-defined type on the database. | |
UserName | Gets or sets the database user name. | |
Users | Represents a collection of User objects. Each User object represents a user who is defined on the database. | |
Version | Gets the version of the instance of SQL Server that was used to create the database. | |
Views | Represents a collection of View objects. Each View object represents a view defined on the database. | |
XmlSchemaCollections | Represents a collection of XmlSchemaCollection objects. Each XmlSchemaCollection object represents an XML schema defined on the database. |
Top
Events
Name | Description | |
---|---|---|
PropertyChanged | (Inherited from SqlSmoObject.) | |
PropertyMetadataChanged | (Inherited from SqlSmoObject.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IAlienObjectDiscover() | (Inherited from SqlSmoObject.) | |
IAlienObjectGetParent() | (Inherited from SqlSmoObject.) | |
IAlienObjectGetProperty(String) | (Inherited from SqlSmoObject.) | |
ISfcPropertyProviderGetPropertySet() | (Inherited from SqlSmoObject.) | |
IAlienObjectGetUrn() | (Inherited from SqlSmoObject.) | |
IAlienObjectResolve(String) | (Inherited from SqlSmoObject.) | |
IAlienObjectSetProperty(Object, Object) | (Inherited from SqlSmoObject.) |
Top