Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Failed To Connect To SBOCommon

I recently started to attempt an integration from a business app into SAP Business One using the SDK. I can create the com objects and set the connection values, but when I attempt to connect I receive "Failed To Connect To SBOCommon" which is error 111. When I run the basic operations sample from the SDK I receive the same issue.

The SQL Server database is there and the credentials that I pass should be good. I can connect to the database using an ODBC driver and so I don't believe that it is a permissions issue. Am I missing a licencing component?

Any help would be appreciated.



Former Member
Former Member replied

Hi Trevor,

i have your same issue connecting to the sap company database.

i'm using DI API 2005 and MSSQL 2005.

below my code:

oCompany.Server = "MSIE7";

oCompany.CompanyDB = "SBODemo_IT";

oCompany.UserName = "manager";

oCompany.Password = "manager";

oCompany.language = SAPbobsCOM.BoSuppLangs.ln_Italian;

oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005;

oCompany.UseTrusted = true;

lRetCode = oCompany.Connect();

i get lRetCode = -111

have you solved this issue?

thanks in advance


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question