Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 21 at 04:23 PM

    Hi Musa,

    I think the DB name is missing in the code. Can you try adding DB Name value as well in the string.

    https://www.sap.com/developer/tutorials/hxe-dot-net-connection.html

    Thanks,

    Jagadish

    Add comment
    10|10000 characters needed characters exceeded