共用方式為


Database 成員

The Database object represents a SQL Server database.

Database 型別公開下列成員。

建構函式

  名稱 描述
公用方法 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.

頂端

方法

  名稱 描述
受保護的方法 AddDatabaseContext (繼承自 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 (繼承自 SqlSmoObject。)
受保護的方法 AlterImplFinish (繼承自 SqlSmoObject。)
受保護的方法 AlterImplInit (繼承自 SqlSmoObject。)
受保護的方法 AlterImplWorker (繼承自 SqlSmoObject。)
受保護的方法 AppendCommaText (繼承自 ScriptNameObjectBase。)
受保護的方法 AppendWithCommaText (繼承自 ScriptNameObjectBase。)
受保護的方法 AppendWithOption (繼承自 ScriptNameObjectBase。)
受保護的方法 BindDefaultImpl (繼承自 SqlSmoObject。)
受保護的方法 BindRuleImpl (繼承自 SqlSmoObject。)
公用方法 ChangeMirroringState Changes the mirroring configuration as specified by the options.
公用方法 CheckAllocations 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 (繼承自 SqlSmoObject。)
公用方法 CheckIdentityValues Verifies the integrity of all identity columns in tables in the database.
受保護的方法 CheckObjectDirty (繼承自 ScriptNameObjectBase。)
受保護的方法 CheckObjectState() () () () Validates the state of the referenced object. (繼承自 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. (繼承自 SqlSmoObject。)
受保護的方法 CheckObjectStateImpl (繼承自 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 (繼承自 ScriptNameObjectBase。)
受保護的方法 CheckTextModeSupport (繼承自 ScriptNameObjectBase。)
受保護的方法 CheckVersion100 (繼承自 SqlSmoObject。)
受保護的方法 CheckVersion80 Checks the validity of the object on SQL Server 2000. (繼承自 SqlSmoObject。)
受保護的方法 CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (繼承自 SqlSmoObject。)
受保護的方法 CheckVersion90 Check the validity of the object on SQL Server 2005. (繼承自 SqlSmoObject。)
受保護的方法 CheckVersionBelow90 (繼承自 SqlSmoObject。)
受保護的方法 CleanObject Cleans the referenced object. (繼承自 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 (繼承自 SqlSmoObject。)
受保護的方法 CreateImplFinish (繼承自 SqlSmoObject。)
受保護的方法 CreateImplInit (繼承自 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 (繼承自 SqlSmoObject。)
公用方法 Drop Drops the database.
公用方法 DropAllPlanGuides Drops all Plan Guides in a database.
公用方法 DropBackupHistory Drops the backup history for the database.
受保護的方法 DropImpl (繼承自 SqlSmoObject。)
受保護的方法 DropImplWorker (繼承自 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 (繼承自 SqlSmoObject。)
受保護的方法 EnumScriptImplWorker (繼承自 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。)
公用方法 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 (繼承自 Object。)
受保護的方法 ForceTextModeOnTextBody Enforces text mode on the text body. (繼承自 ScriptNameObjectBase。)
受保護的方法 FormatSqlVariant (繼承自 SqlSmoObject。)
受保護的方法 GenerateDataSpaceFileStreamScript (繼承自 SqlSmoObject。)
受保護的方法 GenerateDataSpaceScript (繼承自 SqlSmoObject。)
受保護的方法 GetBindDefaultScript (繼承自 SqlSmoObject。)
受保護的方法 GetBindRuleScript (繼承自 SqlSmoObject。)
受保護的方法 GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (繼承自 SqlSmoObject。)
受保護的方法 GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (繼承自 SqlSmoObject。)
受保護的方法 GetBraketNameForText (繼承自 ScriptNameObjectBase。)
受保護的方法 GetDateTimeParameter (繼承自 SqlSmoObject。)
受保護的方法 GetDateTimeParameterAsInt (繼承自 SqlSmoObject。)
受保護的方法 GetDBName Gets the database name that is associated with the object. (繼承自 SqlSmoObject。)
受保護的方法 GetEnumParameter (繼承自 SqlSmoObject。)
受保護的方法 GetFragOptionString (繼承自 SqlSmoObject。)
受保護的方法 GetGuidParameter (繼承自 SqlSmoObject。)
公用方法 GetHashCode (繼承自 Object。)
受保護的方法 GetIsTextDirty Determines whether the text value is consistent with stored value. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (繼承自 SqlSmoObject。)
受保護的方法 GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (繼承自 SqlSmoObject。)
受保護的方法 GetPropValue (繼承自 SqlSmoObject。)
受保護的方法 GetPropValueOptional (繼承自 SqlSmoObject。)
受保護的方法 GetPropValueOptionalAllowNull (繼承自 SqlSmoObject。)
受保護的方法 GetRealValue (繼承自 SqlSmoObject。)
受保護的方法 GetScriptIncludeExists (繼承自 ScriptNameObjectBase。)
受保護的方法 GetScriptingOptionsForCreate (繼承自 SqlSmoObject。)
受保護的方法 GetServerName Gets the name of the instance of SQL Server with which the object is associated. (繼承自 SqlSmoObject。)
受保護的方法 GetServerObject (繼承自 SqlSmoObject。)
受保護的方法 GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (繼承自 SqlSmoObject。)
受保護的方法 GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (繼承自 SqlSmoObject。)
受保護的方法 GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (繼承自 SqlSmoObject。)
受保護的方法 GetTextBody() () () () Returns the text body. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextBody(Boolean) Returns the text body. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextHeader Returns the text header. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextMode Determines whether the script name is using text mode. (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextProperty(String) (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTextProperty(String, ScriptingOptions) (繼承自 ScriptNameObjectBase。)
受保護的方法 GetTimeSpanParameterAsInt (繼承自 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 (繼承自 Object。)
受保護的方法 GetUrnRecursive(StringBuilder) (繼承自 SqlSmoObject。)
受保護的方法 GetUrnRecursive(StringBuilder, UrnIdOption) (繼承自 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 (繼承自 SqlSmoObject。)
公用方法 Initialize() () () () Initializes the object and forces the properties be loaded. (繼承自 SqlSmoObject。)
公用方法 Initialize(Boolean) Initializes the object and forces the properties be loaded. (繼承自 SqlSmoObject。)
公用方法 IsMember Determines whether the specified group or role belongs to the database.
受保護的方法 IsObjectDirty Determines whether the referenced object is consistent with the stored object. (繼承自 ScriptNameObjectBase。)
受保護的方法 IsObjectInitialized Verifies whether the object has been initialized. (繼承自 SqlSmoObject。)
受保護的方法 IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (繼承自 SqlSmoObject。)
受保護的方法 IsVersion80SP3 (繼承自 SqlSmoObject。)
受保護的方法 MarkDropped (繼承自 SqlSmoObject。)
受保護的方法 MarkForDropImpl (繼承自 SqlSmoObject。)
受保護的方法 MemberwiseClone (繼承自 Object。)
受保護的方法 PostAlter (繼承自 SqlSmoObject。)
受保護的方法 PostCreate (繼承自 SqlSmoObject。)
受保護的方法 PostDrop (繼承自 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. (覆寫 ScriptNameObjectBase. . :: . .Refresh() () () ()。)
公用方法 RemoveFullTextCatalogs Removes full-text catalogs from the database.
公用方法 Rename Renames the database.
受保護的方法 RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (繼承自 NamedSmoObject。)
受保護的方法 RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (繼承自 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 (繼承自 SqlSmoObject。)
受保護的方法 ScriptAnsiQI (繼承自 ScriptNameObjectBase。)
受保護的方法 ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (繼承自 NamedSmoObject。)
受保護的方法 ScriptCreate (繼承自 SqlSmoObject。)
受保護的方法 ScriptDdl (繼承自 SqlSmoObject。)
受保護的方法 ScriptDrop (繼承自 SqlSmoObject。)
受保護的方法 ScriptImpl() () () () (繼承自 SqlSmoObject。)
受保護的方法 ScriptImpl(ScriptingOptions) (繼承自 SqlSmoObject。)
受保護的方法 ScriptImplWorker (繼承自 SqlSmoObject。)
受保護的方法 ScriptInformativeHeaders (繼承自 ScriptNameObjectBase。)
受保護的方法 ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (繼承自 NamedSmoObject。)
受保護的方法 SetCollectionTextMode Sets the collection text mode. (繼承自 ScriptNameObjectBase。)
公用方法 SetDefaultFileGroup Sets the default file group for the database.
公用方法 SetDefaultFileStreamFileGroup Sets the default filestream group.
公用方法 SetDefaultFullTextCatalog 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。)
公用方法 SetSnapshotIsolation Sets the snapshot isolation level.
受保護的方法 SetTextBody Specifies the text body. (繼承自 ScriptNameObjectBase。)
受保護的方法 SetTextHeader Specifies the text header. (繼承自 ScriptNameObjectBase。)
受保護的方法 SetTextMode Specifies the text mode. (繼承自 ScriptNameObjectBase。)
公用方法 Shrink Shrinks the database.
受保護的方法 SwitchTextMode Switches the text mode. (繼承自 ScriptNameObjectBase。)
受保護的方法 ThrowIfTextIsDirtyForAlter (繼承自 ScriptNameObjectBase。)
公用方法 ToString Returns a String that represents the referenced object. (繼承自 SqlSmoObject。)
受保護的方法 TouchImpl (繼承自 SqlSmoObject。)
公用方法 TruncateLog Truncates the database log.
受保護的方法 UnbindDefaultImpl (繼承自 SqlSmoObject。)
受保護的方法 UnbindRuleImpl (繼承自 SqlSmoObject。)
公用方法 UpdateIndexStatistics Updates index statistics.
公用方法 Validate (繼承自 SmoObjectBase。)
公用方法 ValidateAllPlanGuides() () () () Verifies the validity of the execution plans associated with the database.
公用方法 ValidateAllPlanGuides(DataTable%)

頂端

欄位

  名稱 描述
受保護的欄位 m_ExtendedProperties (繼承自 SqlSmoObject。)

頂端

屬性

  名稱 描述
公用屬性 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. (繼承自 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. (繼承自 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. (繼承自 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. (繼承自 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. (繼承自 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. (繼承自 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. (繼承自 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. (繼承自 SqlSmoObject。)
公用屬性 UserAccess Gets or sets the database user access.
公用屬性 UserData Gets or sets user-defined data associated with the referenced object. (繼承自 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.

頂端

事件

  名稱 描述
公用事件 PropertyChanged (繼承自 SqlSmoObject。)
公用事件 PropertyMetadataChanged (繼承自 SqlSmoObject。)

頂端

明確繼承實作  

  名稱 描述
明確介面實作私用方法 IAlienObjectDiscover (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObjectGetParent (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObjectGetProperty (繼承自 SqlSmoObject。)
明確介面實作私用方法 ISfcPropertyProviderGetPropertySet (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObjectGetUrn (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObjectResolve (繼承自 SqlSmoObject。)
明確介面實作私用方法 IAlienObjectSetProperty (繼承自 SqlSmoObject。)

頂端