DatabaseActiveDirectory Class

The DatabaseActiveDirectory object provides programmatic access to the Active Directory settings for a database.

命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

語法

'宣告
Public NotInheritable Class DatabaseActiveDirectory
    Inherits SqlSmoObject
public sealed class DatabaseActiveDirectory : SqlSmoObject
public ref class DatabaseActiveDirectory sealed : public SqlSmoObject
public final class DatabaseActiveDirectory extends SqlSmoObject
public final class DatabaseActiveDirectory extends SqlSmoObject

備註

The DatabaseActiveDirectory object allows you to:

  • Register a database in the Active Directory service.

  • Update the database information in Active Directory service.

  • Create an alias for the database that appears in the Active Directory service.

  • Create a contact, a description and an information URL for the database that appears in the Active Directory service.

  • Delete the database registration information from Active Directory service.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

To get or set DatabaseActiveDirectory object properties, users must be a member of the db_owner fixed database role or the sysadmin fixed server role.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Management.Smo.SmoObjectBase
     Microsoft.SqlServer.Management.Smo.SqlSmoObject
      Microsoft.SqlServer.Management.Smo.DatabaseActiveDirectory

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

DatabaseActiveDirectory Members
Microsoft.SqlServer.Management.Smo Namespace

其他資源

Active Directory 預存程序 (Transact-SQL)
sp_ActiveDirectory_Obj (Transact-SQL)