SQL-DMO
Registry Object
The Registry object exposes the Microsoft® Windows NT® 4.0, Microsoft® Windows 2000®, or Microsoft Windows® 98 registry settings that maintain an instance of Microsoft SQL Server™ and run-time parameters.

Properties
Remarks
With the Registry object, you can:
- Retrieve SQL Server parameters set during installation, such as the registered owner, character set, and sort order.
- Set system start behavior for an instance of SQL Server.
- Configure SQL Server mail account information.
- Configure SQL Server default data- and error-log paths, or set the path for the SQL Server master database.
Changes to property values of the Registry object are applied to the referenced instance of SQL Server as they are made.
To set a SQL Server run-time parameter
- Get the Registry object from a connected SQLServer object.
- Set the parameter. For example, to cause the SQL Server service (MSSQLServer) to start automatically when the system is started, set the AutostartServer property to TRUE.
Note The Registry object is compatible with instances of SQL Server 2000 and SQL Server version 7.0. However, the Registry2 object extends the functionality of the Registry object for use with features that are new in SQL Server 2000.