SQLConnection Constructor | |
Construct an SQL connection.
Namespace:
VO
Assembly:
VOSQLClasses (in VOSQLClasses.dll) Version: 2.19
Syntax CONSTRUCTOR(
cDataSourceName,
cUserID,
cPassword
) CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public SQLConnection(
Usual cDataSourceName = default,
Usual cUserID = default,
Usual cPassword = default
)
Request Example
View SourceParameters
- cDataSourceName (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.
Remarks
If a data source is provided to this method, an attempt to connect will occur; otherwise, use the SQLConnection:Connect() method. Another option is to use SQLConnection:DataSource to name the source.
See Also