HanaConnection(string) constructor

Initializes a HanaConnection object.

Parameters

connectionString
A SAP HANA connection string. A connection string is a semicolon-separated list of keyword=value pairs. For a list of connection parameters, see Connection parameters.

Remarks

The connection must then be opened before you can perform any operations against the database.

Example

The following statement initializes a HanaConnection object for a connection to an SAP HANA database server named HumanResources. The connection uses the user ID Admin and the password Money123.

HanaConnection conn = new HanaConnection( 
   "userid=Admin;password=Money123;server=HumanResources:30015" ); 
conn.Open();