Function CSPODBCRecordset::Connect()
Description:
Connects to an ODBC data source, by creating an internal connection object.
 |
Prototype:
bool Connect(const CSPString& strDSN, const CSPString& strUID = CSPString(), const CSPString& strPWD = CSPString());
Arguments:
- const CSPString& strDSN [IN]
The name of the ODBC data source.
- const CSPString& strUID = CSPString() [IN]
The username used for the connection authorization.
- const CSPString& strPWD = CSPString() [IN]
The password used for the connection authorization.
Return value:
If successful, it returns true. Otherwise, it returns false.
Examples:
CSPODBCRecordset Set; Set.Connect( "my_data_source", "username", "abc123" );
See also:
member function Disconnect() class CSPODBCConnection
|
|