on 05-19-2006 8:25 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.