0

I am trying to build a ADO.NET entity model from a SAP HANA database. This is for SAP B1. This process is pretty straight forward using MS Server/MySql etc.

However, when I follow the steps of creating this HANA model, I get the following error below on clicking "Test Connection":

general error: database 'EOH_CCL_TEST' does not exist

enter image description here

I have added a reference for Sap.Data.Hana.v4.5.dll.

Version is 1.0.120.0.

The database exists and I am able to perform queries on it as can be seen below.

Note: I am using the same credentials as I used to log into SAP HANA Studio.

What am I missing here?

There is a previous post: ADO.NET Provider for SAP HANA - Version mismatch issue

But in that issue, the user was able to make the connection.

enter image description here

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Kinyanjui Kamau
  • 1,890
  • 10
  • 55
  • 95
  • 1
    Going from the screenshot you are not using a HANA system with multiple database containers. In this “classic” setup there is no separate admin object “database” and connections don’t take a database name. Just put in hostname and port and leave the database name empty. The `EOH_CCL_TEST` is indeed just the schema name. Beyond that, it’s really not a good idea to use `SYSTEM` user for working with data or really anything beyond bootstrapping the system. – Lars Br. Aug 22 '18 at 00:58
  • This worked. You should put this as answer. – Kinyanjui Kamau Aug 22 '18 at 09:45
  • Just added as an answer. – Lars Br. Aug 22 '18 at 11:44

2 Answers2

2

You are using the schema name EOH_CCL_TEST as database name. The database name is different to the schema name. Did you logon to the SYSTEMDB database or to a tenant database in HANA Studio? Using the used DB name should solve the issue for you. PS: I also do not think that you need to add a port in the hostname property field.

Florian Pfeffer
  • 259
  • 1
  • 7
1

Going from the screenshot you are not using a HANA system with multiple database containers. In this “classic” setup there is no separate admin object “database” and connections don’t take a database name.

Just put in hostname and port and leave the database name empty. The EOH_CCL_TEST is indeed just the schema name.

Beyond that, it’s really not a good idea to use SYSTEM user for working with data or really anything beyond bootstrapping the system.

Lars Br.
  • 9,949
  • 2
  • 15
  • 29