Skip to Content
avatar image
Former Member

Error connection Visual Studio to DI-API with HANA

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 21, 2017 at 07:57 PM

    I'm having the same issue

    Add comment
    10|10000 characters needed characters exceeded

  • May 22 at 11:16 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded