Skip to Content
author's profile photo Former Member
Former Member

Using connection SAPbobsCOM.Company

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2005 at 01:55 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 22, 2005 at 02:00 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.