AddStartParameter Method (SQL-DMO)

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

Applies To

SQLServer Object

Syntax

object.AddStartParameter( str )

Part Description
object Expression that evaluates to an object in the Applies To list.
str String specifying a startup option. For more information about startup options and their effect, see SQL Server Startup Options.

Remarks

The list of SQL Server service startup options in use for a SQL Server installation is visible in 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 a SQL Server installation that is not started. The Start method of the SQLServer object will then launch the SQL Server service with the option specified.


Important Specifying startup options for the SQL Server service is supported for SQL Server installations on Microsoft Windows NT®. Any setting is ignored when the SQL Server service is installed on Microsoft Windows® 95/98.


Prototype (C/C++)

HRESULT AddStartParameter(SQLDMO_LPCSTR NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.