SQLConnection.Connect Method | |
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
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual Connect(
Usual cDataSource = default,
Usual cUserID = default,
Usual cPassword = default
)
Request Example
View SourceParameters
- 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