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

Which server must the client connect to?


The following is our current setup:

SQL Server database is running on machine X.

SAP Business One Server is running on machine Y.

License Manager is also running on machine Y.

Here is the code to connect to the SAP Business One Server:

SAPbobsCOM.CompanyClass c = new SAPbobsCOM.CompanyClass();

c.Server = "Y";

c.CompanyDB = "SBODemo_US";

c.UserName = "manager";

c.Password = "manager";

c.language = SAPbobsCOM.BoSuppLangs.ln_English;


This code fails with an error that the connection to SBO_Common could not be established.

However, if I change the server to point to X, the connection goes through.

This is puzzling. Why must I connect to the database server machine and not the machine running SAP Business One Server? Shouldn't I be connecting to the middleware tier and not the database tier?

Thank you in advance for enlightening me.


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 26, 2005 at 08:02 AM

    Hi Sunny,

    As the DI help file says, the Server property specifies the SQL server to which the company object connects.

    The company object is a copy of the business tier of SAP Business One (that´s why it is a fat client application). And it needs to connect to the database.

    Take a look at a general view of SBO architecture to understand it better.


    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.