Connect Method

SQLServer Object

Description

Connects to SQL Server.

Visual Basic

SQLServer.Connect (
[[ServerName :=] strServer,]
[[Login :=] idLogin,]
[[Password :=] idPassword] )

C++

HRESULT pSQLServer->Connect (
SQLOLE_LPCSTR
strServer = NULL,
SQLOLE_LPCSTR
idLogin = NULL,
SQLOLE_LPCSTR
idPassword = NULL );

Elements

Element Type Description

strServer String Name of SQL Server
idLogin Identifier Login
idPassword Identifier Password