This method of the Connection class has the following signatures:
open()
open(String connectionString)
open(String connectionString, String userID)
open(String connectionString, String userID, String password)
open(String connectionString, String userID, String password, int options)
Opens a connection to a data source.
public void open();
public void open(String connectionString);
connectionString | Optional. A String that contains connection information. |
public void open(String connectionString, String userID);
connectionString | Optional. A String that contains connection information. |
userID | Optional. A String that contains a user name to use when establishing the connection. |
public void open(String connectionString, String userID, String password);
connectionString | Optional. A string that contains connection information. |
userID | Optional. A string that contains a user name to use when establishing the connection. |
password | Optional. A string that contains a password to use when establishing the connection. |
public void open(String connectionString, String userID, String password, int options);
connectionString | Optional. A string that contains connection information. |
userID | Optional. A string that contains a user name to use when establishing the connection. |
password | Optional. A string that contains a password to use when establishing the connection. |
options | Optional. A ConnectOption value that determines whether this method should return after (synchronously) or before (asynchronously) the connection is established. |