Function CSPODBCConnection::Connect() Description: Establishes a connection to an ODBC data source.
| Prototype: bool Connect(const CSPString& strDSN, const CSPString& strUID, const CSPString& strPWD); Arguments: const CSPString& strDSN [IN] The ODBC data source name. const CSPString& strUID [IN] The username used for the connection authorization. const CSPString& strPWD [IN] The password used for the connection authorization. Return value: If successful, it returns true. Otherwise, it returns false. Examples: CSPODBCConnection Conn; Conn.Connect( "my_datasource", "username", "abc123" ); See also: member function Disconnect()
CSPODBCConnection | ODBC support classes | Class Categories | Online help home | Back
www.micronovae.com Copyright © 2002 - 2004 Micronovae Ltd