Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

紧急求助,在DI 中连接帐套的问题

我在Addon中,通过DI 来连接公司库,代码如下:

//连接公司

SAPbobsCOM.Company oCompany = new SAPbobsCOM.Company();

oCompany.UserName = "manager";

oCompany.Password = "manager";

oCompany.Server = "127.0.0.1";

oCompany.CompanyDB = "SBODemoUS";

oCompany.DbUserName = "sa";

oCompany.DbPassword = "123456";

oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English;

int lRetCode = oCompany.Connect();

if (lRetCode != 0)

{

int temp_int = 0;

string temp_string = "";

oCompany.GetLastError(out temp_int, out temp_string);

}

连接失败,出现错误: 错误号: -125 错误信息: No database server type specified

SBO版本为8.0 ,请问为何种原因?

Former Member
Former Member replied
Not what you were looking for? View more on this topic or Ask a question