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)


I have the following problem; DI API version 8.82 PL11 can usually connect via PHP:

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


$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>";


} 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:


Source: SAPbobsCOM.Company.90.0

Description: You are not connected to a company

Database server type not supported

Note: Both cases IIS environment

Former Member
Former Member replied

Hi Eric,

In addition to adding



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

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