Skip to Content

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

Connection to SBO-Common has failed

at the moment I am working in a development of a POS for SBO, which requires of connection with I GAVE with visual BASIC 6,0, the restlessness is the following one when treatment to connect to me in local form works correctly, but when I am to connect against the servant it gives siguinte error: -- Connection to SBO-Common there are failed --, ademas also I have noticed that the connection takes not if they are podran to improve those times. beforehand thanks

Annexed I cosay of connection:

Public Function ConexionSBO() As Boolean

Dim oCompany As SAPbobsCOM.Company

Dim ret as Long

Dim strMsg as string

Set oCompany = New SAPbobsCOM.Company

oCompany .Server = Empresa.Servidor ' Server

oCompany .CompanyDB = Empresa.BaseDatos ' DB

oCompany .UserName = Empresa.Usuario ' User

oCompany .Password = Empresa.Password ' Password oCompany .Language = ln_Spanish

oCompany .UseTrusted = True

ret = oCompany .Connect

If ret <> 0 Then

oCompany .GetLastError ret, strMsg

ConexionSBO = False

Else

ConexionSBO = True

End If

End Function

Former Member
Former Member replied

Hello David,

Try to replace the oCompany.UseTrusted=True to oCompany.DBUsername = 'your db username' and oCompany.DBPassword = 'your db password'. This will remove the error you had mentioned. Hoep this helps.

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