Start Method

SQLServer Object

Description

Starts a stopped SQL Server.

Visual Basic

SQLServer.Start (
[[Server :=] strServer,]
[[Login :=] idLogin,]
[[Password :=] idPassword,]
[[MasterDBPath :=] strMasterDatabasePath,]
[[ErrorLogPath :=] strErrorLogPath,]
[[MasterMirrorPath :=] strMasterMirrorPath,]
[[StartMode :=] tStartMode] )

C++

HRESULT pSQLServer->Start (
SQLOLE_LPCSTR
strServer = NULL,
SQLOLE_LPCSTR
idLogin = NULL,
SQLOLE_LPCSTR
idPassword = NULL,
SQLOLE_LPCSTR
strMasterDatabasePath = NULL,
SQLOLE_LPCSTR
strErrorLogPath = NULL,
SQLOLE_LPCSTR
strMasterMirrorPath = NULL,
SQLOLE_STARTSRV_TYPE
tStartMode = SQLOLEStart_Defaults );

Elements

Element Type Description

strServer String Name of SQL Server to start
idLogin Identifier Login
idPassword Identifier Password
strMasterDatabasePath String Path to master database
strErrorLogPath String Path to error log
strMasterMirrorPath String Path to master mirror
tStartMode SQLOLE_STARTSRV_TYPE Start mode