Skip to Content
0
May 16, 2018 at 12:03 AM

HanaConnection.Open() gives the error "error while parsing protocol"

1735 Views

I am trying to connect to HANA Database in C#. But I am getting "error while parsing protocol" error when running the "hanaConnection.Open()" line.

I tried the same method in other databases successfully and I am having the error only in this customer.

Here is code block I am running;

HanaConnection hanaConnection= new HanaConnection();

string connectionString = "Server=192.***:30015;UserID=SYSTEM;Password=1234"

if (hanaConnection.State == ConnectionState.Closed){

hanaConnection= new HanaConnection(connectionString);

hanaConnection.Open();
}

I have tried to connection string with ODBC driver, still same result.