The object provides programmatic access to the Active Directory settings for a database.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
The 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.
To get or set object properties, users must be a member of the db_owner fixed database role or the sysadmin fixed server role.
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.