Does someone know if we can specify the default schema when opening a connection to hana ?
There is a lot of odbc drivers that allows to automatically set the database in the connection string.
After connecting to the database, the program can select * from table without having to specify select * from database.schema.table.
With hana odbc
We open the connection with a string like "ServerNode=Hanaserver:port;UID=user;PWD=password".
The, because our code was done following the above approach, it does a select * from table and ... the table is not found because there is no default schema specified.
I have to do a SET SCHEMA after each connection.
Is there a way to set the default schema directly in the connection string like we can do in with other drivers ?
Something like
"ServerNode=Hanaserver:port;SCHEMA=MYSCHEMA;UID=user;PWD=password".