Skip to Content
0

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

Nov 09, 2017 at 07:35 AM

89

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

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

Got the solution.

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

Share
10 |10000 characters needed characters left characters exceeded