ADOConnection.OpenDSN


public function OpenDSN

Prototype:

function OpenDSN(DSN, username, password)

Parameters

DSN
string containing the DSN
username
the username to use (as string)
password
the password to use (as string)

Description:

This function tries to connect to system or user DSN. If you want to use an ODBC connection string, you should also check Open.

Return value:

Returns null if the connection fails or the connection handle if the connection is successful.