Compartilhar via


Membros Database

The Database object represents a SQL Server database.

O tipo Database expõe os seguintes membros.

Construtores

  Nome Descrição
Método público Database() () () () Initializes a new instance of the Database class.
Método público Database(Server, String) Initializes a new instance of the Database class on the specified server and with the specified name.

Início

Métodos

  Nome Descrição
Método protegido AddDatabaseContext (Herdado de SqlSmoObject.)
Método público Alter() () () () Updates any Database object property changes on the instance of SQL Server. 
Método público Alter(TimeSpan) Updates any Database object property changes on the instance of SQL Server. 
Método público Alter(TerminationClause) Updates any Database object property changes on the instance of SQL Server. 
Método protegido AlterImpl (Herdado de SqlSmoObject.)
Método protegido AlterImplFinish (Herdado de SqlSmoObject.)
Método protegido AlterImplInit (Herdado de SqlSmoObject.)
Método protegido AlterImplWorker (Herdado de SqlSmoObject.)
Método protegido AppendCommaText (Herdado de ScriptNameObjectBase.)
Método protegido AppendWithCommaText (Herdado de ScriptNameObjectBase.)
Método protegido AppendWithOption (Herdado de ScriptNameObjectBase.)
Método protegido BindDefaultImpl (Herdado de SqlSmoObject.)
Método protegido BindRuleImpl (Herdado de SqlSmoObject.)
Método público ChangeMirroringState Changes the mirroring configuration as specified by the options.
Método público CheckAllocations Scans all pages of the referenced database and tests pages to help ensure integrity.
Método público CheckAllocationsDataOnly Scans all pages of the referenced database and tests only the data to help ensure integrity.
Método público CheckCatalog Tests the integrity of the database catalog.
Método protegido CheckCollation (Herdado de SqlSmoObject.)
Método público CheckIdentityValues Verifies the integrity of all identity columns in tables in the database.
Método protegido CheckObjectDirty (Herdado de ScriptNameObjectBase.)
Método protegido CheckObjectState() () () () Validates the state of the referenced object. (Herdado de SqlSmoObject.)
Método protegido 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. (Herdado de SqlSmoObject.)
Método protegido CheckObjectStateImpl (Herdado de SqlSmoObject.)
Método público Checkpoint Issues a checkpoint.
Método público CheckTables(RepairType)
Método público CheckTables(RepairType, RepairOptions)
Método público CheckTables(RepairType, RepairStructure)
Método público CheckTables(RepairType, RepairOptions, RepairStructure)
Método público CheckTablesDataOnly() () () () Tests integrity of data in pages that store data for all tables and indexes defined on the tables of the referenced database.
Método público 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.
Método público 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.
Método público 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.
Método protegido CheckTextCorectness (Herdado de ScriptNameObjectBase.)
Método protegido CheckTextModeSupport (Herdado de ScriptNameObjectBase.)
Método protegido CheckVersion100 (Herdado de SqlSmoObject.)
Método protegido CheckVersion80 Checks the validity of the object on SQL Server 2000. (Herdado de SqlSmoObject.)
Método protegido CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Herdado de SqlSmoObject.)
Método protegido CheckVersion90 Check the validity of the object on SQL Server 2005. (Herdado de SqlSmoObject.)
Método protegido CheckVersionBelow90 (Herdado de SqlSmoObject.)
Método protegido CleanObject Cleans the referenced object. (Herdado de ScriptNameObjectBase.)
Método público Create() () () () Creates a database on the instance of SQL Server as defined by the Database object.
Método público Create(Boolean) Creates a database on the instance of SQL Server as defined by the Database object.
Método protegido CreateImpl (Herdado de SqlSmoObject.)
Método protegido CreateImplFinish (Herdado de SqlSmoObject.)
Método protegido CreateImplInit (Herdado de SqlSmoObject.)
Método público Deny(DatabasePermissionSet, String) Denies the specified set of permissions for the specified grantee on the database.
Método público Deny(DatabasePermissionSet, array<String> [] () [] []) Denies the specified set of permissions for the specified grantees on the database.
Método público 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.
Método público 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.
Método público DisableAllPlanGuides Disables all Plan Guides in a database.
Método público Discover (Herdado de SqlSmoObject.)
Método público Drop Drops the database.
Método público DropAllPlanGuides Drops all Plan Guides in a database.
Método público DropBackupHistory Drops the backup history for the database.
Método protegido DropImpl (Herdado de SqlSmoObject.)
Método protegido DropImplWorker (Herdado de SqlSmoObject.)
Método público EnableAllPlanGuides Enables all Plan Guides in a database.
Método público EnumBackupSetFiles() () () () Returns a DataTable listing files contained in a backup set.
Método público EnumBackupSetFiles(Int32) Returns a Data table that lists the files in a backup set
Método público EnumBackupSets Returns a DataTable listing the backup sets associated with a database.
Método público EnumCandidateKeys Enumerates a list of all candidate primary keys in the database, which can be referenced by a foreign key.
Método público EnumDatabasePermissions() () () () Enumerates a list of all permissions in the database.
Método público EnumDatabasePermissions(String) Enumerates a list of permissions in the database for the specified user.
Método público EnumDatabasePermissions(DatabasePermissionSet) Enumerates a list of permissions in the database for the specified permission set.
Método público EnumDatabasePermissions(String, DatabasePermissionSet) Enumerates a list of permissions in the database for the specified user and a specified permission set.
Método público EnumLocks() () () () Enumerates a list of all current locks held on the database.
Método público EnumLocks(Int32) Enumerates a list of current locks held on the database for a specified system process ID.
Método público EnumLoginMappings Enumerates a list of SQL Server logins for all the users in the database.
Método público EnumMatchingSPs(String) Enumerates a list of stored procedures that contain the specified string in the definition.
Método público EnumMatchingSPs(String, Boolean) Enumerates a list of stored procedures that contain the specified string in the definition.
Método público EnumObjectPermissions() () () () Enumerates a list of permissions for objects in the database.
Método público EnumObjectPermissions(String) Enumerates a list of permissions for objects in the database that belong to the specified user.
Método público EnumObjectPermissions(ObjectPermissionSet) Enumerates a list of permissions for objects in the database limited to the specified permission set.
Método público 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.
Método público EnumObjects() () () () Enumerates a list of objects in the database.
Método público EnumObjects(DatabaseObjectTypes) Enumerates a list of objects in the database.
Método público EnumObjects(DatabaseObjectTypes, SortOrder) Enumerates a list of objects in the database.
Método protegido EnumScriptImpl (Herdado de SqlSmoObject.)
Método protegido EnumScriptImplWorker (Herdado de SqlSmoObject.)
Método público EnumTransactions() () () () Enumerates a list of open transactions on the database.
Método público EnumTransactions(TransactionTypes) Enumerates a list of open transactions of a specified type on the database.
Método público EnumWindowsGroups() () () () Enumerates a list of Windows groups.
Método público EnumWindowsGroups(String) Enumerates a list of Windows groups for a specified group.
Método público Equals (Herdado de Object.)
Método público ExecuteNonQuery(StringCollection) Executes a batch in the context of the database where there are no results returned.
Método público ExecuteNonQuery(String) Executes a statement in the context of the database where there are no results returned.
Método público 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.
Método público ExecuteNonQuery(String, ExecutionTypes) Executes a batch in the context of the database where there are no results returned for the specified execution type only.
Método público ExecuteWithResults(StringCollection) Executes a batch in the context of the database where there are results returned.
Método público ExecuteWithResults(String) Executes a collection of batches in the context of the database where there are results returned.
Método protegido Finalize (Herdado de Object.)
Método protegido ForceTextModeOnTextBody Enforces text mode on the text body. (Herdado de ScriptNameObjectBase.)
Método protegido FormatSqlVariant (Herdado de SqlSmoObject.)
Método protegido GenerateDataSpaceFileStreamScript (Herdado de SqlSmoObject.)
Método protegido GenerateDataSpaceScript (Herdado de SqlSmoObject.)
Método protegido GetBindDefaultScript (Herdado de SqlSmoObject.)
Método protegido GetBindRuleScript (Herdado de SqlSmoObject.)
Método protegido GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Herdado de SqlSmoObject.)
Método protegido GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Herdado de SqlSmoObject.)
Método protegido GetBraketNameForText (Herdado de ScriptNameObjectBase.)
Método protegido GetDateTimeParameter (Herdado de SqlSmoObject.)
Método protegido GetDateTimeParameterAsInt (Herdado de SqlSmoObject.)
Método protegido GetDBName Gets the database name that is associated with the object. (Herdado de SqlSmoObject.)
Método protegido GetEnumParameter (Herdado de SqlSmoObject.)
Método protegido GetFragOptionString (Herdado de SqlSmoObject.)
Método protegido GetGuidParameter (Herdado de SqlSmoObject.)
Método público GetHashCode (Herdado de Object.)
Método protegido GetIsTextDirty Determines whether the text value is consistent with stored value. (Herdado de ScriptNameObjectBase.)
Método protegido GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Herdado de SqlSmoObject.)
Método protegido GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Herdado de SqlSmoObject.)
Método protegido GetPropValue (Herdado de SqlSmoObject.)
Método protegido GetPropValueOptional (Herdado de SqlSmoObject.)
Método protegido GetPropValueOptionalAllowNull (Herdado de SqlSmoObject.)
Método protegido GetRealValue (Herdado de SqlSmoObject.)
Método protegido GetScriptIncludeExists (Herdado de ScriptNameObjectBase.)
Método protegido GetScriptingOptionsForCreate (Herdado de SqlSmoObject.)
Método protegido GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Herdado de SqlSmoObject.)
Método protegido GetServerObject (Herdado de SqlSmoObject.)
Método protegido GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Herdado de SqlSmoObject.)
Método protegido GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Herdado de SqlSmoObject.)
Método protegido GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Herdado de SqlSmoObject.)
Método protegido GetTextBody() () () () Returns the text body. (Herdado de ScriptNameObjectBase.)
Método protegido GetTextBody(Boolean) Returns the text body. (Herdado de ScriptNameObjectBase.)
Método protegido GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Herdado de ScriptNameObjectBase.)
Método protegido GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) (Herdado de ScriptNameObjectBase.)
Método protegido GetTextHeader Returns the text header. (Herdado de ScriptNameObjectBase.)
Método protegido GetTextMode Determines whether the script name is using text mode. (Herdado de ScriptNameObjectBase.)
Método protegido GetTextProperty(String) (Herdado de ScriptNameObjectBase.)
Método protegido GetTextProperty(String, ScriptingOptions) (Herdado de ScriptNameObjectBase.)
Método protegido GetTimeSpanParameterAsInt (Herdado de SqlSmoObject.)
Método público GetTransactionCount() () () () Gets the number of open transactions on the database.
Método público GetTransactionCount(TransactionTypes) Gets the number of open transactions of a specified type on the database.
Método público GetType (Herdado de Object.)
Método protegido GetUrnRecursive(StringBuilder) (Herdado de SqlSmoObject.)
Método protegido GetUrnRecursive(StringBuilder, UrnIdOption) (Herdado de SqlSmoObject.)
Método público Grant(DatabasePermissionSet, String) Grants the specified set of permissions to the specified grantee on the database.
Método público Grant(DatabasePermissionSet, array<String> [] () [] []) Grants the specified set of permissions to the specified grantees on the database.
Método público 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.
Método público 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.
Método público 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.
Método público 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.
Método protegido ImplInitialize (Herdado de SqlSmoObject.)
Método público Initialize() () () () Initializes the object and forces the properties be loaded. (Herdado de SqlSmoObject.)
Método público Initialize(Boolean) Initializes the object and forces the properties be loaded. (Herdado de SqlSmoObject.)
Método público IsMember Determines whether the specified group or role belongs to the database.
Método protegido IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Herdado de ScriptNameObjectBase.)
Método protegido IsObjectInitialized Verifies whether the object has been initialized. (Herdado de SqlSmoObject.)
Método protegido IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Herdado de SqlSmoObject.)
Método protegido IsVersion80SP3 (Herdado de SqlSmoObject.)
Método protegido MarkDropped (Herdado de SqlSmoObject.)
Método protegido MarkForDropImpl (Herdado de SqlSmoObject.)
Método protegido MemberwiseClone (Herdado de Object.)
Método protegido PostAlter (Herdado de SqlSmoObject.)
Método protegido PostCreate (Herdado de SqlSmoObject.)
Método protegido PostDrop (Herdado de SqlSmoObject.)
Método público PrefetchObjects() () () () Prefetches database objects.
Método público PrefetchObjects(Type) Prefetches database objects of a specified type.
Método público PrefetchObjects(Type, ScriptingOptions) Prefetches database objects of a specified type with scripting options.
Método público RecalculateSpaceUsage Recalculates space usage.
Método público Refresh Updates the Database object. (Substitui ScriptNameObjectBase. . :: . .Refresh() () () ().)
Método público RemoveFullTextCatalogs Removes full-text catalogs from the database.
Método público Rename Renames the database.
Método protegido RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Herdado de NamedSmoObject.)
Método protegido RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Herdado de NamedSmoObject.)
Método público Revoke(DatabasePermissionSet, String) Revokes a previously granted set of permissions from a grantee on the database.
Método público Revoke(DatabasePermissionSet, array<String> [] () [] []) Revokes a previously granted set of permissions from a list of grantees on the database.
Método público 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.
Método público 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.
Método público 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.
Método público 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.
Método público Script() () () () Generates a Transact-SQL script that can be used to re-create the database.
Método público Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the database as specified by the script options.
Método protegido ScriptAlter (Herdado de SqlSmoObject.)
Método protegido ScriptAnsiQI (Herdado de ScriptNameObjectBase.)
Método protegido ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Herdado de NamedSmoObject.)
Método protegido ScriptCreate (Herdado de SqlSmoObject.)
Método protegido ScriptDdl (Herdado de SqlSmoObject.)
Método protegido ScriptDrop (Herdado de SqlSmoObject.)
Método protegido ScriptImpl() () () () (Herdado de SqlSmoObject.)
Método protegido ScriptImpl(ScriptingOptions) (Herdado de SqlSmoObject.)
Método protegido ScriptImplWorker (Herdado de SqlSmoObject.)
Método protegido ScriptInformativeHeaders (Herdado de ScriptNameObjectBase.)
Método protegido ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Herdado de NamedSmoObject.)
Método protegido SetCollectionTextMode Sets the collection text mode. (Herdado de ScriptNameObjectBase.)
Método público SetDefaultFileGroup Sets the default file group for the database.
Método público SetDefaultFileStreamFileGroup Sets the default filestream group.
Método público SetDefaultFullTextCatalog Sets the default full-text catalog for the database.
Método público SetOffline Sets the database offline.
Método público SetOnline Sets the database online.
Método público SetOwner(String) Sets the database owner.
Método público SetOwner(String, Boolean) Sets the database owner.
Método protegido SetParentImpl (Herdado de SqlSmoObject.)
Método público SetSnapshotIsolation Sets the snapshot isolation level.
Método protegido SetTextBody Specifies the text body. (Herdado de ScriptNameObjectBase.)
Método protegido SetTextHeader Specifies the text header. (Herdado de ScriptNameObjectBase.)
Método protegido SetTextMode Specifies the text mode. (Herdado de ScriptNameObjectBase.)
Método público Shrink Shrinks the database.
Método protegido SwitchTextMode Switches the text mode. (Herdado de ScriptNameObjectBase.)
Método protegido ThrowIfTextIsDirtyForAlter (Herdado de ScriptNameObjectBase.)
Método público ToString Returns a String that represents the referenced object. (Herdado de SqlSmoObject.)
Método protegido TouchImpl (Herdado de SqlSmoObject.)
Método público TruncateLog Truncates the database log.
Método protegido UnbindDefaultImpl (Herdado de SqlSmoObject.)
Método protegido UnbindRuleImpl (Herdado de SqlSmoObject.)
Método público UpdateIndexStatistics Updates index statistics.
Método público Validate (Herdado de SmoObjectBase.)
Método público ValidateAllPlanGuides() () () () Verifies the validity of the execution plans associated with the database.
Método público ValidateAllPlanGuides(DataTable%)

Início

Campos

  Nome Descrição
Campo protegido m_ExtendedProperties (Herdado de SqlSmoObject.)

Início

Propriedades

  Nome Descrição
Propriedade pública ActiveConnections Gets the number of active connections to the database.
Propriedade pública ActiveDirectory Gets the information about the Active Directory settings for the database.
Propriedade pública AnsiNullDefault Gets or sets AnsiNullDefault Property.
Propriedade pública AnsiNullsEnabled Gets or sets the Boolean ANSI_NULLS_ENABLED property value.
Propriedade pública AnsiPaddingEnabled Gets or sets the ANSI_PADDING_ENABLED database option is enabled.
Propriedade pública AnsiWarningsEnabled Gets or sets the Boolean ANSI_WARNING_ENABLED property value.
Propriedade pública ApplicationRoles Represents a collection of ApplicationRole objects. Each ApplicationRole object represents an application role defined on the database.
Propriedade pública ArithmeticAbortEnabled Gets or sets the ARITHMETICABORT property value.
Propriedade pública Assemblies Represents a collection of SqlAssembly objects. Each SqlAssembly object represents an assembly defined on the database.
Propriedade pública AsymmetricKeys Represents a collection of AsymmetricKey objects. Each AsymmetricKey object represents an asymmetric key defined on the database.
Propriedade pública AutoClose Gets or sets the AUTOCLOSE database option is set.
Propriedade pública AutoCreateStatisticsEnabled Gets a Boolean property value that specifies whether statistics are automatically created for the database.
Propriedade pública AutoShrink Gets or sets the AUTO_SHRINK database option.
Propriedade pública AutoUpdateStatisticsAsync Gets or sets a property value that specifies whether the AUTOUPDATESTATISTICSASYNC database option is active.
Propriedade pública AutoUpdateStatisticsEnabled Gets a Boolean property value that specifies whether statistics are automatically updated for the database.
Propriedade pública BrokerEnabled Gets or sets a property value that specifies whether the Service Broker service is enabled.
Propriedade pública CaseSensitive Gets a Boolean property value that specifies whether uppercase letters and lowercase letters are evaluated as equal.
Propriedade pública Certificates Represents a collection of Certificate objects. Each Certificate object represents a certificate defined on the database.
Propriedade pública ChangeTrackingAutoCleanUp Gets or sets a Boolean property value that specifies whether the CHANGE_TRACKING_AUTO_CLEANUP OPTION is enabled.
Propriedade pública ChangeTrackingEnabled Gets or sets a property value that specifies whether the CHANGE_TRACKING_VALUE option is enabled
Propriedade pública ChangeTrackingRetentionPeriod Gets or sets the CHANGE_TRACKING_RETENTION_PERIOD value.
Propriedade pública ChangeTrackingRetentionPeriodUnits Gets or sets the unit type for a retention period value.
Propriedade pública CloseCursorsOnCommitEnabled Gets or sets a value that specifies whether the CURSOR_CLOSE_ON_COMMIT database option is active.
Propriedade pública Collation Gets or sets the default collation used by the database.
Propriedade pública CompatibilityLevel Gets or sets the compatibility level for the database.
Propriedade pública ConcatenateNullYieldsNull Gets or sets a property value that specifies whether the CONCAT_NULL_YIELDS_NULL database option is active.
Propriedade pública CreateDate Gets the date that the database was created.
Propriedade pública DatabaseAuditSpecifications Represents a collection of DatabaseAuditSpecification objects. Each DatabaseAuditSpecification object represents an database audit specification defined on the server.
Propriedade pública DatabaseEncryptionKey Gets a DataBaseEncryptionKey datatype.
Propriedade pública DatabaseGuid Gets the Guid value that uniquely identifies the database.
Propriedade pública DatabaseOptions Gets the DatabaseOptions object that contains configuration options for the database.
Propriedade pública DatabaseOwnershipChaining Gets or sets a property value that specifies whether the database ownership chaining is active.
Propriedade pública DatabaseSnapshotBaseName Gets the name of the snapshot base for the database.
Propriedade pública DataSpaceUsage Gets the space used by the data in the database.
Propriedade pública DateCorrelationOptimization Gets or sets a property value that specifies whether the date correlation optimization is active.
Propriedade pública DboLogin Gets the Boolean value that specifies whether the current user is logged on as the database owner (DBO).
Propriedade pública DefaultFileGroup Gets the default file group used by the database.
Propriedade pública DefaultFileStreamFileGroup Gets a DefaultFileStreamFileGroup datatype
Propriedade pública DefaultFullTextCatalog Gets the default full-text catalog used by the database.
Propriedade pública Defaults Represents a collection of Default objects. Each Default object represents a default defined on the database.
Propriedade pública DefaultSchema Gets the default schema of the user.
Propriedade pública EncryptionEnabled Gets or sets the ENCRYPTIONENABLED property of a database.
Propriedade pública Events Gets the events associated with the database.
Propriedade protegida ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Herdado de SqlSmoObject.)
Propriedade pública ExtendedProperties Gets the extended properties of the database.
Propriedade pública ExtendedStoredProcedures Represents a collection of ExtendedStoredProcedure objects. Each ExtendedStoredProcedure object represents an extended stored procedure defined on the database.
Propriedade pública FileGroups Represents a collection of FileGroup objects. Each FileGroup object represents a filegroup defined on the database.
Propriedade pública FullTextCatalogs Represents a collection of FullTextCatalog objects. Each FullTextCatalog object represents a full-text catalog defined on the database.
Propriedade pública FullTextStopLists Represents a collection of FullTextStopList objects. Each FullTextStopList object represents a full text stop list defined on the server.
Propriedade pública HonorBrokerPriority Gets or sets the Boolean value that specifies whether the priority specified by the broker is acknowledged or not.
Propriedade pública ID Gets the database ID value that uniquely identifies the database.
Propriedade pública IndexSpaceUsage Gets the space used by the indexes in the database.
Propriedade pública IsAccessible Gets a Boolean property value that specifies whether the database can be accessed.
Propriedade pública IsDatabaseSnapshot Gets a Boolean property value that specifies whether the database is a snapshot database.
Propriedade pública IsDatabaseSnapshotBase Gets a Boolean property value that specifies whether the database is the base database for a snapshot database.
Propriedade pública IsDbAccessAdmin Gets a Boolean property value that specifies whether the current user is a member of the DbAccessAdmin database role.
Propriedade pública IsDbBackupOperator Gets a Boolean property value that specifies whether the current user is a member of the DbBackupOperator database role.
Propriedade pública IsDbDatareader Gets a Boolean property value that specifies whether the current user is a member of the DbDatareader database role.
Propriedade pública IsDbDatawriter Gets a Boolean property value that specifies whether the current user is a member of the DbDatawriter database role.
Propriedade pública IsDbDdlAdmin Gets a Boolean property value that specifies whether the current user is a member of the DbDdlAdmin database role.
Propriedade pública IsDbDenyDatareader Gets a Boolean property value that specifies whether the current user is a member of the DbDenyDatareader database role.
Propriedade pública IsDbDenyDatawriter Gets a Boolean property value that specifies whether the current member is a member of the DbDenyDatawriter database.
Propriedade pública IsDbOwner Gets a Boolean property value that specifies whether the current user is a member of the DbOwner database role.
Propriedade pública IsDbSecurityAdmin Gets a Boolean property value that specifies whether the current user is a member of the DbSecurityAdmin database role.
Propriedade pública IsFullTextEnabled Gets the Boolean value that specifies whether the database is enabled for full-text search.
Propriedade pública IsMailHost Gets the Boolean value that specifies whether the database is configured as a mail host.
Propriedade pública IsManagementDataWarehouse Gets the Boolean value that specifies whether the database is a management data warehouse.
Propriedade pública IsMirroringEnabled Gets the Boolean value that specifies whether mirroring is enabled on the database.
Propriedade pública IsParameterizationForced Gets or sets a property value that specifies whether parameterization is forced on the database.
Propriedade pública IsReadCommittedSnapshotOn Gets the Boolean value that specifies whether transactions with the read committed isolation level use row versioning.
Propriedade pública IsSystemObject Gets the Boolean value that specifies whether the database is a system object or a user-defined database.
Propriedade protegida IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Herdado de SqlSmoObject.)
Propriedade pública IsUpdateable Gets the Boolean value that specifies whether the database can be updated.
Propriedade pública IsVarDecimalStorageFormatEnabled Gets or sets a property value that specifies whether VarDecimal storage is enabled.
Propriedade pública LastBackupDate Gets the date and time when the database was last backed up.
Propriedade pública LastDifferentialBackupDate Gets the date and time when the last differential backup was performed.
Propriedade pública LastLogBackupDate Gets the date and time when the transaction log was last backed up.
Propriedade pública LocalCursorsDefault Gets the Boolean value that specifies whether the local server cursors are used by default.
Propriedade pública LogFiles Represents a collection of LogFile objects. Each LogFile object represents a log file defined on the database.
Propriedade pública LogReuseWaitStatus Gets the type of operation on which the reuse of transaction log space is waiting.
Propriedade pública MasterKey Gets the master key that is used to encrypt the private keys of certificates.
Propriedade pública MirroringFailoverLogSequenceNumber Gets the log sequence number at last failover.
Propriedade pública MirroringID Gets the ID value that uniquely identifies the mirroring partnership.
Propriedade pública MirroringPartner Gets or sets the address of the Mecanismo de Banco de Dados instance that is the partner server for database mirroring.
Propriedade pública MirroringPartnerInstance Gets the instance of SQL Server on which the mirroring partner is configured.
Propriedade pública MirroringRedoQueueMaxSize Gets or sets the maximum size of the redo queue of the mirror server instance in KB.
Propriedade pública MirroringRoleSequence Gets the role sequence number for primary/backup roles played by the mirroring partners.
Propriedade pública MirroringSafetyLevel Gets or sets the mirroring safety level.
Propriedade pública MirroringSafetySequence Gets the role sequence number for safety levels for the mirroring partners.
Propriedade pública MirroringStatus Gets the status of the database and the database mirroring session.
Propriedade pública 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.
Propriedade pública MirroringWitness Gets or sets the name of the Mecanismo de Banco de Dados instance of the database mirroring witness server.
Propriedade pública MirroringWitnessStatus Gets the status of the mirroring witness server.
Propriedade pública Name Gets or sets the name of the object. (Herdado de NamedSmoObject.)
Propriedade pública NumericRoundAbortEnabled Gets or sets a Boolean property value that specifies whether the NUMERIC_ROUNDABORT database option is active.
Propriedade protegida 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. (Herdado de SqlSmoObject.)
Propriedade pública Owner Gets the database principal that is the owner of the database.
Propriedade pública PageVerify Specifies the type of page integrity check that SQL Server performs when reading database pages.
Propriedade pública Parent Gets the Server object that is the parent of the Database object.
Propriedade pública PartitionFunctions Represents a collection of PartitionFunction objects. Each PartitionFunction object represents a partition function defined on the database.
Propriedade pública PartitionSchemes Represents a collection of PartitionScheme objects. Each PartitionScheme object represents a partition scheme defined on the database.
Propriedade pública PlanGuides Gets Plan Guides associated with a database.
Propriedade pública PrimaryFilePath Gets the path and name of the operating system directory that contains the primary file for the database.
Propriedade pública Properties Gets a collection of Property objects that represent the object properties. (Herdado de SqlSmoObject.)
Propriedade pública 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.
Propriedade pública ReadOnly Gets or sets the Boolean property value that specifies whether the database is read-only.
Propriedade pública RecoveryForkGuid Gets the GUID value that specifies the recovery fork on which the database is currently active.
Propriedade pública RecoveryModel Gets or sets the recovery model for the database.
Propriedade pública RecursiveTriggersEnabled Gets or sets the Boolean value that specifies whether recursive triggers are enabled on the database.
Propriedade pública ReplicationOptions Gets the active replication settings for a database,
Propriedade pública Roles Represents a collection of DatabaseRole objects. Each DatabaseRole object represents a role defined on the database.
Propriedade pública Rules Represents a collection of Rule objects. Each Rule object represents a rule defined on the database.
Propriedade protegida ScalarResult Gets the scalar result for the referenced object. (Herdado de SqlSmoObject.)
Propriedade pública Schemas Represents a collection of Schema objects. Each Schema object represents a schema defined on the database.
Propriedade pública ServiceBroker Gets the ServiceBroker object that represents the Service Broker.
Propriedade pública ServiceBrokerGuid Gets the Guid object that uniquely identifies the instance of Service Broker.
Propriedade pública Size Gets the size of the database in MB.
Propriedade pública SnapshotIsolationState Gets the snapshot isolation state for the database.
Propriedade pública SpaceAvailable Gets the available space in the database in KB.
Propriedade pública State Gets the state of the referenced object. (Herdado de SmoObjectBase.)
Propriedade pública Status Gets the database status.
Propriedade pública StoredProcedures Represents a collection of StoredProcedure objects. Each StoredProcedure object represents a stored procedure defined on the database.
Propriedade pública SymmetricKeys Represents a collection of SymmetricKey objects. Each SymmetricKey object represents a symmetric key defined on the database.
Propriedade pública Synonyms Represents a collection of Synonym objects. Each Synonym object represents a synonym defined on the database.
Propriedade pública Tables Represents a collection of Table objects. Each Table object represents a table defined on the database.
Propriedade pública Triggers Represents a collection of DatabaseDdlTrigger objects. Each DatabaseDdlTrigger object represents a trigger defined on the database.
Propriedade pública Trustworthy The TRUSTWORTHY database property is used to indicate whether the instance of SQL Server 2005 trusts the database and the contents within it
Propriedade pública Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Herdado de SqlSmoObject.)
Propriedade pública UserAccess Gets or sets the database user access.
Propriedade pública UserData Gets or sets user-defined data associated with the referenced object. (Herdado de SmoObjectBase.)
Propriedade pública UserDefinedAggregates Represents a collection of UserDefinedAggregate objects. Each UserDefinedAggregate object represents a user-defined aggregate defined on the database.
Propriedade pública UserDefinedDataTypes Represents a collection of UserDefinedDataType objects. Each UserDefinedDataType object represents a user-defined data type on the database.
Propriedade pública UserDefinedFunctions Represents a collection of UserDefinedFunction objects. Each UserDefinedFunction object represents a user-defined function on the database.
Propriedade pública UserDefinedTableTypes Represents a collection of UserDefinedTableType objects. Each UserDefinedTableType object represents a user-defined table type on the database.
Propriedade pública UserDefinedTypes Represents a collection of UserDefinedType objects. Each UserDefinedType object represents a user-defined type on the database.
Propriedade pública UserName Gets or sets the database user name.
Propriedade pública Users Represents a collection of User objects. Each User object represents a user who is defined on the database.
Propriedade pública Version Gets the version of the instance of SQL Server that was used to create the database.
Propriedade pública Views Represents a collection of View objects. Each View object represents a view defined on the database.
Propriedade pública XmlSchemaCollections Represents a collection of XmlSchemaCollection objects. Each XmlSchemaCollection object represents an XML schema defined on the database.

Início

Eventos

  Nome Descrição
Evento público PropertyChanged (Herdado de SqlSmoObject.)
Evento público PropertyMetadataChanged (Herdado de SqlSmoObject.)

Início

Implementações de interface explícitas

  Nome Descrição
Implementação de interface explícitaMétodo particular IAlienObjectDiscover (Herdado de SqlSmoObject.)
Implementação de interface explícitaMétodo particular IAlienObjectGetParent (Herdado de SqlSmoObject.)
Implementação de interface explícitaMétodo particular IAlienObjectGetProperty (Herdado de SqlSmoObject.)
Implementação de interface explícitaMétodo particular ISfcPropertyProviderGetPropertySet (Herdado de SqlSmoObject.)
Implementação de interface explícitaMétodo particular IAlienObjectGetUrn (Herdado de SqlSmoObject.)
Implementação de interface explícitaMétodo particular IAlienObjectResolve (Herdado de SqlSmoObject.)
Implementação de interface explícitaMétodo particular IAlienObjectSetProperty (Herdado de SqlSmoObject.)

Início