cancel
Showing results for 
Search instead for 
Did you mean: 

Connection to SBO-Common has failed

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (0)