Skip to Content
avatar image
Former Member

B1 SAP Hana error: database 'SBODEMOGB' does not exist

Hello experts,

I am trying to perform queries on a SAP Hana database on SAP Business One.

I have the following code:

// Establish an active connection to the SAP HANA database  
HanaConnection conn = new HanaConnection("Server=192.*.*.*:30015;
databaseName=SBODEMOGB;UserID=SYSTEM;Password=blablabla");  

//Open the database connection   
conn.Open();

The error gets thrown on conn.Open(); The error is as below:

Sap.Data.Hana.HanaException was unhandled by user code
ErrorCode=-2147467259
HResult=-2147467259
Message=general error: database 'SBODEMOGB' does not exist
NativeError=2
Source=SAP HANA Data Provider for Microsoft ADO.NET

What could be wrong?

Any help appreciated.

Kinyanjui

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 09, 2017 at 08:38 AM

    Got the solution.

    Just get rid on databaseName in the connection string and it works.

    Add comment
    10|10000 characters needed characters exceeded