using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SAPbobsCOM;
namespace ConsoleApp1 { class Program { static void Main(string[] args) { SAPbobsCOM.Company oCompany = new SAPbobsCOM.Company();
// Init Connection Properties oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2017; oCompany.Server = ""YourCompanyServer\\MSSQL2017""; // change to your company server oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English; // change to your language oCompany.UseTrusted = false; oCompany.DbUserName = ""yourusername""; oCompany.DbPassword = ""yourpassword"";