Initializes an AseConnection object. The connection must then be opened before you can carry out any operations against the database.
connectionString – an Adaptive Server connection string. A connection string is a semicolon-separated list of keyword-value pairs.
DataSource=servername,portor
DataSource=servername:port
For example, DataSource=gamg:4100 sets the server name to “gamg” and the port to “4100.” In this case, the Port keyword would not be needed in the connection string.
The following statement initializes an AseConnection object for a connection to a database named “policies” running on an Adaptive Server database server named “HR-001.” The connection uses a user ID of “admin” with a password of “money.”
"Data Source='HR-001'; Port=5000; UID='admin'; PWD='money'; Database='policies';"