cancel
Showing results for 
Search instead for 
Did you mean: 

Error connection Visual Studio to DI-API with HANA

Former Member
0 Kudos

Hello friends,

I have successfuly connected a Visual Studio project to DI-API in a SAP BO with SQL SERVER database environment. I used the SAPbobsCOM.cll. Now we have HANA and I guess the code to connect to the DI-API are very similar. But I'm getting the error -119 database type not supported.

I'm using SAPBusinessOneSDK.dll (We have SAP 9.2), and this is my code:

DI.Server = "hanab1:30015";

DI.LicenseServer = "hanab1:40000";

DI.CompanyDB = companyDB;

DI.DbServerType = BoDataServerTypes.dst_HANADB;

DI.DbUserName = "SYSTEM";

DI.DbPassword = "********";

DI.UserName = companyUser;

DI.Password = companyPassword;

DI.language = BoSuppLangs.ln_English;

DI.UseTrusted = false;

Any help will be very appreciated.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Generally, "database type not supported" means that you are running your program on a machine that has the SQL version of DI API installed instead of the HANA DI API.

francisco_erveru
Explorer
0 Kudos

I'm having the same issue