Udostępnij przez


Database Members

The Database object represents a SQL Server database.

The following tables list the members exposed by the Database type.

Public Constructors

  Name Description
Database Overloaded. Initializes a new instance of the Database class.

Top

Protected Fields

  Name Description
ms219498.protfield(pl-pl,SQL.100).gif m_ExtendedProperties  (inherited from SqlSmoObject )

Top

Public Properties

(see also Protected Properties )

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

Top

Protected Properties

  Name Description
ms219498.protproperty(pl-pl,SQL.100).gif ExecuteForScalar  Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (inherited from SqlSmoObject)
ms219498.protproperty(pl-pl,SQL.100).gif 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)
ms219498.protproperty(pl-pl,SQL.100).gif 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)
ms219498.protproperty(pl-pl,SQL.100).gif ScalarResult  Gets the scalar result for the referenced object. (inherited from SqlSmoObject)

Top

Public Methods

(see also Protected Methods )

  Name Description
ms219498.pubmethod(pl-pl,SQL.100).gif Alter Overloaded. Updates any Database object property changes on an instance of SQL Server.
ms219498.pubmethod(pl-pl,SQL.100).gif ChangeMirroringState Changes the mirroring configuration as specified by the options.
ms219498.pubmethod(pl-pl,SQL.100).gif CheckAllocations Scans all pages of the referenced database and tests pages to help ensure integrity.
ms219498.pubmethod(pl-pl,SQL.100).gif CheckAllocationsDataOnly Scans all pages of the referenced database and tests only the data to help ensure integrity.
ms219498.pubmethod(pl-pl,SQL.100).gif CheckCatalog Tests the integrity of the database catalog.
ms219498.pubmethod(pl-pl,SQL.100).gif CheckIdentityValues Verifies the integrity of all identity columns in tables in the database.
ms219498.pubmethod(pl-pl,SQL.100).gif Checkpoint Issues a checkpoint.
ms219498.pubmethod(pl-pl,SQL.100).gif CheckTables Overloaded.  
ms219498.pubmethod(pl-pl,SQL.100).gif CheckTablesDataOnly Overloaded. Tests integrity of data in pages that store data for all tables and indexes defined on the tables of the referenced database.
ms219498.pubmethod(pl-pl,SQL.100).gif Create Overloaded. Creates a database on the instance of SQL Server as defined by the Database object.
ms219498.pubmethod(pl-pl,SQL.100).gif Deny Overloaded. Denies the specified set of permissions for the specified grantees on the database.
ms219498.pubmethod(pl-pl,SQL.100).gif DisableAllPlanGuides Disables all Plan Guides in a database.
ms219498.pubmethod(pl-pl,SQL.100).gif Discover  (inherited from SqlSmoObject )
ms219498.pubmethod(pl-pl,SQL.100).gif Drop Drops the database.
ms219498.pubmethod(pl-pl,SQL.100).gif DropAllPlanGuides Drops all Plan Guides in a database.
ms219498.pubmethod(pl-pl,SQL.100).gif DropBackupHistory Drops the backup history for the database.
ms219498.pubmethod(pl-pl,SQL.100).gif EnableAllPlanGuides Enables all Plan Guides in a database.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumBackupSetFiles Overloaded. Returns a DataTable listing files contained in a backup set.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumBackupSets Returns a DataTable listing the backup sets associated with a database.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumCandidateKeys Enumerates a list of all candidate primary keys in the database, which can be referenced by a foreign key.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumDatabasePermissions Overloaded. Enumerates a list of all database permissions in the database.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumLocks Overloaded. Enumerates a list of current locks on the database.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumLoginMappings Enumerates a list of SQL Server logins for all the users in the database.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumMatchingSPs Overloaded. Enumerates a list of stored procedures that contain the specified string in the definition.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumObjectPermissions Overloaded. Enumerates a list of permissions for objects in the database.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumObjects Overloaded. Enumerates a list of objects in the database.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumTransactions Overloaded. Enumerates a list of open transactions on the database.
ms219498.pubmethod(pl-pl,SQL.100).gif EnumWindowsGroups Overloaded. Enumerates a list of Windows groups.
ms219498.pubmethod(pl-pl,SQL.100).gif Equals  Overloaded. (inherited from Object )
ms219498.pubmethod(pl-pl,SQL.100).gif ExecuteNonQuery Overloaded. Executes a collection of batches in the context of the database where there are no results returned.
ms219498.pubmethod(pl-pl,SQL.100).gif ExecuteWithResults Overloaded. Executes a collection of batches in the context of the database where there are results returned.
ms219498.pubmethod(pl-pl,SQL.100).gifms219498.static(pl-pl,SQL.100).gif GetChildType  (inherited from SqlSmoObject )
ms219498.pubmethod(pl-pl,SQL.100).gif GetHashCode  (inherited from Object )
ms219498.pubmethod(pl-pl,SQL.100).gif GetTransactionCount Overloaded. Gets the number of open transactions on the database.
ms219498.pubmethod(pl-pl,SQL.100).gif GetType  (inherited from Object )
ms219498.pubmethod(pl-pl,SQL.100).gifms219498.static(pl-pl,SQL.100).gif GetTypeFromUrnSkeleton  (inherited from SqlSmoObject )
ms219498.pubmethod(pl-pl,SQL.100).gif Grant Overloaded. Grants the specified set of permissions to the specified grantees on the database.
ms219498.pubmethod(pl-pl,SQL.100).gif Initialize  Overloaded. Initializes the object and forces the properties be loaded. (inherited from SqlSmoObject)
ms219498.pubmethod(pl-pl,SQL.100).gif IsMember Determines whether the specified group or role belongs to the database.
ms219498.pubmethod(pl-pl,SQL.100).gif PrefetchObjects Overloaded. Prefetches database objects.
ms219498.pubmethod(pl-pl,SQL.100).gif RecalculateSpaceUsage Recalculates space usage.
ms219498.pubmethod(pl-pl,SQL.100).gifms219498.static(pl-pl,SQL.100).gif ReferenceEquals  (inherited from Object )
ms219498.pubmethod(pl-pl,SQL.100).gif Refresh Overridden. Updates the Database object.
ms219498.pubmethod(pl-pl,SQL.100).gif RemoveFullTextCatalogs Removes full-text catalogs from the database.
ms219498.pubmethod(pl-pl,SQL.100).gif Rename Renames the database.
ms219498.pubmethod(pl-pl,SQL.100).gif Revoke Overloaded. Revokes a previously granted set of permissions from a grantee or grantees on the database.
ms219498.pubmethod(pl-pl,SQL.100).gif Script Overloaded. Generates a Transact-SQL script that can be used to re-create the database.
ms219498.pubmethod(pl-pl,SQL.100).gif SetDefaultFileGroup Sets the default file group for the database.
ms219498.pubmethod(pl-pl,SQL.100).gif SetDefaultFileStreamFileGroup Sets the default filestream group.
ms219498.pubmethod(pl-pl,SQL.100).gif SetDefaultFullTextCatalog Sets the default full-text catalog for the database.
ms219498.pubmethod(pl-pl,SQL.100).gif SetOffline Sets the database offline.
ms219498.pubmethod(pl-pl,SQL.100).gif SetOnline Sets the database online.
ms219498.pubmethod(pl-pl,SQL.100).gif SetOwner Overloaded. Sets the database owner.
ms219498.pubmethod(pl-pl,SQL.100).gif SetSnapshotIsolation Sets the snapshot isolation level.
ms219498.pubmethod(pl-pl,SQL.100).gif Shrink Shrinks the database.
ms219498.pubmethod(pl-pl,SQL.100).gif ToString  Returns a String that represents the referenced object. (inherited from SqlSmoObject)
ms219498.pubmethod(pl-pl,SQL.100).gif TruncateLog Truncates the database log.
ms219498.pubmethod(pl-pl,SQL.100).gif UpdateIndexStatistics Updates index statistics.
ms219498.pubmethod(pl-pl,SQL.100).gif Validate  (inherited from SmoObjectBase )
ms219498.pubmethod(pl-pl,SQL.100).gif ValidateAllPlanGuides Overloaded. Verifies the validity of the execution plans associated with the database.

Top

Protected Methods

  Name Description
ms219498.protmethod(pl-pl,SQL.100).gif AddDatabaseContext  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif AlterImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif AlterImplFinish  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif AlterImplInit  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif AlterImplWorker  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif AppendCommaText  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif AppendWithCommaText  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif AppendWithOption  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif BindDefaultImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif BindRuleImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif CheckCollation  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif CheckObjectDirty  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif CheckObjectState  Overloaded. Validates the state of the referenced object. (inherited from SqlSmoObject)
ms219498.protmethod(pl-pl,SQL.100).gif CheckObjectStateImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif CheckTextCorectness  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif CheckTextModeSupport  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif CheckVersion100  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif CheckVersion80  Checks the validity of the object on SQL Server 2000. (inherited from SqlSmoObject)
ms219498.protmethod(pl-pl,SQL.100).gif CheckVersion80SP3  Checks the validity of the object on SQL Server 2000 SP3. (inherited from SqlSmoObject)
ms219498.protmethod(pl-pl,SQL.100).gif CheckVersion90  Check the validity of the object on SQL Server 2005. (inherited from SqlSmoObject)
ms219498.protmethod(pl-pl,SQL.100).gif CheckVersionBelow90  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif CleanObject  Cleans the referenced object. (inherited from ScriptNameObjectBase)
ms219498.protmethod(pl-pl,SQL.100).gif CreateImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif CreateImplFinish  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif CreateImplInit  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif DropImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif DropImplWorker  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif EnumScriptImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif EnumScriptImplWorker  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif Finalize  (inherited from Object )
ms219498.protmethod(pl-pl,SQL.100).gif ForceTextModeOnTextBody  Enforces text mode on the text body. (inherited from ScriptNameObjectBase)
ms219498.protmethod(pl-pl,SQL.100).gif FormatSqlVariant  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GenerateDataSpaceFileStreamScript  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GenerateDataSpaceScript  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetBindDefaultScript  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetBindRuleScript  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetBoolParameter  Overloaded. (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetBraketNameForText  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif GetDateTimeParameter  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetDateTimeParameterAsInt  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetDBName  Gets the database name that is associated with the object. (inherited from SqlSmoObject)
ms219498.protmethod(pl-pl,SQL.100).gif GetEnumParameter  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetFragOptionString  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetGuidParameter  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetIsTextDirty  Determines whether the text value is consistent with stored value. (inherited from ScriptNameObjectBase)
ms219498.protmethod(pl-pl,SQL.100).gif GetParameter  Overloaded. (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetPropValue  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetPropValueOptional  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetPropValueOptionalAllowNull  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetRealValue  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetScriptIncludeExists  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif GetScriptingOptionsForCreate  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetServerName  Gets the name of the instance of SQL Server with which the object is associated. (inherited from SqlSmoObject)
ms219498.protmethod(pl-pl,SQL.100).gif GetServerObject  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetSqlServerVersionName  Gets the version name of the instance of SQL Server with which the object is associated. (inherited from SqlSmoObject)
ms219498.protmethod(pl-pl,SQL.100).gif GetStringParameter  Overloaded. (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetTextBody  Overloaded. Returns the text body. (inherited from ScriptNameObjectBase)
ms219498.protmethod(pl-pl,SQL.100).gif GetTextForScript  Overloaded. (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif GetTextHeader  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif GetTextMode  Determines whether the script name is using text mode. (inherited from ScriptNameObjectBase)
ms219498.protmethod(pl-pl,SQL.100).gif GetTextProperty  Overloaded. (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif GetTimeSpanParameterAsInt  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif GetUrnRecursive  Overloaded. (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif ImplInitialize  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gifms219498.static(pl-pl,SQL.100).gif IsCollectionDirty  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif IsObjectDirty  Determines whether the referenced object is consistent with the stored object. (inherited from ScriptNameObjectBase)
ms219498.protmethod(pl-pl,SQL.100).gif IsObjectInitialized  Verifies whether the object has been initialized. (inherited from SqlSmoObject)
ms219498.protmethod(pl-pl,SQL.100).gif IsObjectInSpace  Verifies whether the object is isolated or connected to the instance of SQL Server. (inherited from SqlSmoObject)
ms219498.protmethod(pl-pl,SQL.100).gif IsVersion80SP3  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif MarkDropped  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif MarkForDropImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif MemberwiseClone  (inherited from Object )
ms219498.protmethod(pl-pl,SQL.100).gif PostAlter  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif PostCreate  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif PostDrop  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif RenameImpl  (inherited from NamedSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif RenameImplWorker  (inherited from NamedSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif ScriptAlter  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif ScriptAnsiQI  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif ScriptChangeOwner  (inherited from NamedSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif ScriptCreate  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif ScriptDdl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif ScriptDrop  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif ScriptImpl  Overloaded. (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif ScriptImplWorker  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif ScriptInformativeHeaders  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif ScriptRename  (inherited from NamedSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif SetCollectionTextMode  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif SetParentImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif SetTextBody  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif SetTextHeader  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif SetTextMode  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif SwitchTextMode  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif ThrowIfTextIsDirtyForAlter  (inherited from ScriptNameObjectBase )
ms219498.protmethod(pl-pl,SQL.100).gif TouchImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gifms219498.static(pl-pl,SQL.100).gif Trace  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif UnbindDefaultImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gif UnbindRuleImpl  (inherited from SqlSmoObject )
ms219498.protmethod(pl-pl,SQL.100).gifms219498.static(pl-pl,SQL.100).gif UpdateCollectionState2  (inherited from SqlSmoObject )

Top

Public Events

  Name Description
ms219498.pubevent(pl-pl,SQL.100).gif PropertyChanged  (inherited from SqlSmoObject )
ms219498.pubevent(pl-pl,SQL.100).gif PropertyMetadataChanged  (inherited from SqlSmoObject )

Top