Skip to Content
Jan 28, 2016 at 12:19 PM

Database type not supported Error


Hi, Experts

I have developed a Application currently on Debug mode X86 i have

  • Added sapbobsCOM.dll located in this location C:\Program Files (x86)\SAP\SAP Business One DI API\DI API 90
  • I have a Business one Client that is able to connect to HANA server Databases sucessfully
  • I have installed both 32 bit and 64 bit Hana Database Client ( the one for Drivers JDBC, ODBC,etc)

Below is code on Button click Event

vCompany = New SAPbobsCOM.Company

vCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_HANADB

vCompany.Server = Trim(Me.txtserver.Text)

vCompany.LicenseServer = Trim(Me.txtlicenseserver.Text) ' on the textboxes SERVERNAME:30015

vCompany.UserName = Trim(Me.txtusername.Text) ' on the textboxes SAPB1USERNAME

vCompany.Password = Trim(Me.txtpassword.Text) ' on the textboxes SAPB1PASSWORD

vCompany.CompanyDB = Trim(Me.txtcompany.Text) ' on the textboxes SAPBONEDATABASE

vCompany.language = SAPbobsCOM.BoSuppLangs.ln_English

vCompany.DbUserName = Trim(Me.txtsaphanausername.Text) ' on the textboxes SAPHANAUSERNAME

vCompany.DbPassword = Trim(Me.txtsaphanapassword.Text) ' on the textboxes SAPHANAPASSWORD

vCompany.UseTrusted = False

If (0 = vCompany.Connect()) Then



Dim errcode As Long

Dim erMsg As String

vCompany.GetLastError(errcode, erMsg)


End If

Note: My Hana DB version is - revision 85.3 and SApB1 9.1 PL 08

Kindly Help