Please, How May I connect with theses commands for the network?
Dim Vcmp As SAPbobsCOM.Company
Set Vcmp = New SAPbobsCOM.Company
Vcmp.Server = "(Local)" ===> "I WANT TO WRITE A DIFERENT SERVER"
Vcmp.CompanyDB = "Demo"
Vcmp.UserName = "manager"
Vcmp.Password = "manager"
Vcmp.Language = ln_English
Vcmp.UseTrusted = False
rt = Vcmp.Connect()
I WANT WRITE FOR EXAMPLE THIS:
Vcmp.Server = "BUSINESS1" ===> "THIS IS A DIFERENT SERVER TO "(LOCAL)"
When I try to write a diferent server to (Local), I get an error. How May I resolve this? THANKS.
Hi Joe
What is the error that you get ?
Don't forget to add the information about the login to the server
either
Vcmp.UseTrusted = True
either
Vcmp.UseTrusted = False Vcmp.DbUserName = "sa or any SQL Server login" Vcmp.DbPassword = "password
HTH
Sébastien
Hi Joe,
You should be able to connect to a diferent server with your code, I don´t see any mistake. In order to be sure that the server is avaiable, copy the name from the avaiable ones in the SBO Gui under AdministrationChoose CompanyCurrent Server.
A good advice would be to use the same values as you use for connecting to that remote server in the standar GUI, companyDB, UserName, Password, ...
Hope helps,
Ibai Peñ
Add a comment