Skip to Content
0
Jan 12, 2012 at 06:25 PM

how to connect a remote server in my local pc?.

64 Views

I have a code to connect my server in visual basic 6.0 code, my sap version is 2007 A.

Private Sub ConnectToCompany()
    '// Initialize the Company Object.
    '// Create a new company object
    Set oCompany = New SAPbobsCOM.Company
    '// Set the mandatory properties for the connection to the database.
    '// To use a remote Db Server enter his name instead of the string "(local)"
    '// This string is used to work on a DB installed on your local machine
    oCompany.Server = "(local)"
    oCompany.language = ln_English
    '// Use Windows authentication for database server.
    '// True for NT server authentication,
    '// False for database server authentication.
    oCompany.UseTrusted = True
    ChooseCompany.Show vbModal, Me
  End Sub

but I want to connect my remote server and I didn't. Do i forgeting something??... I changed "(local)" for my name remote server or my local Ip for remote server. But maybe my user name windows for autentication. there is Someone who can help me please. Which one is the correct data I need??