Skip to Content

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

Error DBServerType SAP 9 DI API: Database server type not supported (-119)

Hello,

I have the following problem;

...in DI API version 8.82 PL11 can usually connect via PHP:

$oComp = new COM("SAPbobsCOM.Company") or die("No connection");

$oComp->Server="IP\\INSTANCE";

$oComp->LicenseServer = "IP:Port";

$oComp->DbUserName = "user";

$oComp->DbPassword = "****";

$oComp->DBServerType = "7";

$oComp->UserName = "user";

$oComp->Password = "****";

$oComp->CompanyDB = "SBODemoUS";

try {

    echo $oComp->Connect;

    echo "<br><br>";

    $oComp->StartTransaction();

} catch (com_exception $expt) {

    echo $expt->getMessage();

    echo "<br><br>" . $oComp->GetLastErrorDescription;

}

Note: MSSQL2012

In the case DI API 9.0 PL13 features the same connection the following error:

-119

Source: SAPbobsCOM.Company.90.0

Description: You are not connected to a company

Database server type not supported

Note: Both cases IIS environment

Tags:
Former Member
Former Member replied

Hi Eric,

In addition to adding

[PHP_COM_DOTNET]

extension=php_com_dotnet.dll

to your php.ini file, you have to tell PHP where to look for the extension, and to enable extensions.

Where to look for extensions (Windows):

uncomment (remove the leading ";")

extension_dir = "ext"

<<<<<< OK up here!

Enable extensions:

Set the enable flag to On:

enable_dl = On

The problem was exactly the activation of this extension

Regards, Lucio

0 View this answer in context

Helpful Answer

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