Click or drag to resize

SQLConnection.Connect Method

X#
Connect a user to an ODBC data source.

Namespace:  VO
Assembly:  VOSQLClasses (in VOSQLClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD Connect(
	cDataSource,
	cUserID,
	cPassword
) AS USUAL CLIPPER
Request Example View Source

Parameters

cDataSource (Optional)
Type: Usual
The ODBC data source name. If not specified, the default is NULL_STRING.
cUserID (Optional)
Type: Usual
The ODBC user ID. If not specified, the default is NULL_STRING.
cPassword (Optional)
Type: Usual
The ODBC password (authorization string). If not specified, the default is NULL_STRING.

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
If the connection fails, a message box will display the error. To suppress the message box, call the SQLConnectErrorMsg(FALSE) function.
See Also