Поделиться через


AddStartParameter Method

В будущей версии Microsoft SQL Server эта возможность будет удалена. Избегайте использования этой возможности в новых разработках и запланируйте изменение существующих приложений, в которых она применяется.

The AddStartParameter method appends a Microsoft SQL Server service startup option to those currently used by the service.

Синтаксис

object.AddStartParameter(str)

Parts

Prototype (C/C++)

HRESULT AddStartParameter(SQLDMO_LPCSTR NewValue);

Замечания

The list of SQL Server service startup options in use for an instance of SQL Server is visible in SQL Distributed Management Objects (SQL-DMO) through the Parameters collection of the Configuration object. To configure startup options persistently, use the Add and Remove methods of the Parameters collection.

The AddStartParameter method can be used on a disconnected SQLServer object referencing an instance of SQL Server not yet started. The Start method of the SQLServer object will then start the SQL Server service with the option specified.

Важное примечаниеВажно!

Specifying startup options for the SQL Server service is supported for instances of SQL Server on Microsoft Windows.

Applies to: