Board index » delphi » An error occurred while attempting to initialize the Borland Database Engine (error $2108)

An error occurred while attempting to initialize the Borland Database Engine (error $2108)

Hi I get this error
"An error occurred while attempting to initialize the Borland Database
Engine (error $2108)"

When i run my CGI script written in Delphi, on a Windows NT system running
IIS 4.0.

What should i do in terms of making my program work.

Suggest me how i can update the registry remotely?

I have this program and i have to ask my ISP to run it to make it possible
for me to run my program.

Where can i get a list of meanings of the different BDE error codes?

Manny

 

Re:An error occurred while attempting to initialize the Borland Database Engine (error $2108)


On 9 Oct 1998 01:16:37 GMT, "Manindra" <mani...@hotmail.com> wrote:

Quote
>Hi I get this error
>"An error occurred while attempting to initialize the Borland Database
>Engine (error $2108)"

>When i run my CGI script written in Delphi, on a Windows NT system running
>IIS 4.0.

>What should i do in terms of making my program work.

I've had similar problems and they were related with the access rights
to BDE keys in the registry. Don't forget that the web server is
usualy the anonymous user, IUSR_srvname.

Re:An error occurred while attempting to initialize the Borland Database Engine (error $2108)


$2108 is "cannot locate IDAPI32.DLL". Either the BDE is not installed or the
registry entries for the BDE are incorrect. Install the BDE using an Inprise
certified installation program such as InstallShield Express.

--
Bill Todd
(Sorry but TeamB cannot answer questions received via email)
(Remove nospam from my email address to contact me for any other reason)

Re:An error occurred while attempting to initialize the Borland Database Engine (error $2108)


Quote
>Hi I get this error
>"An error occurred while attempting to initialize the Borland Database
>Engine (error $2108)"

That error is    : Cannot locate IDAPI32  .DLL.

It appers BDE is not installed or the DllPath in the registry is wrong

Quote

>Where can i get a list of meanings of the different BDE error codes?

http://www.inprise.com/devsupport/bde/ti_list/TI3212.html

--
Brian Bushay (TeamB)
Bbus...@DataGuidance.com

Re:An error occurred while attempting to initialize the Borland Database Engine (error $2108)


Thanks for the help.

Looks like you could be right cause i had a custom program written which
specially updates the Registry with the key entries, i'm sure now that its
the access rights to BDE Keys in the registry so how do i get over it. What
should i ask my ISP to release the rights for the BDE keys in the registry.

Whats this IUSR_svrname thing? How can i Use it? Where does it come into
picture?

Manny
mani...@hotmail.com>

Re:An error occurred while attempting to initialize the Borland Database Engine (error $2108)


On 13 Oct 1998 22:20:49 GMT, "Manindra" <mani...@hotmail.com> wrote:

Quote
>Thanks for the help.

>Looks like you could be right cause i had a custom program written which
>specially updates the Registry with the key entries, i'm sure now that its
>the access rights to BDE Keys in the registry so how do i get over it. What
>should i ask my ISP to release the rights for the BDE keys in the registry.

>Whats this IUSR_svrname thing? How can i Use it? Where does it come into
>picture?

Hi Many,
I'm not sure if I'll be able to recall what I did more than a year ago
when I had this problem, but I'll do my best.
First of all, IUSR_srvname (where of course 'srvname' is the name of
the NT server) is a NT user account that is automatically created for
the anonymous access through Internet Information Server. So if you
connect to WWW or FTP server anonymously, your access rights are
defined by the access rights of IUSR_srvname account. Likewise any CGI
program will run in the same security context.
I had found somewhere on the Inprise site a document concerning this
BDE error, and it stated that write access to certain keys in the
Registry was necessary for the BDE to properly initialize, but I can't
find this document now. What I did was grant IUSR_srvname write access
rights to these keys and my CGI program worked. If you can't find the
exact keys, maybe it's possible to grant write access to the entire
HKEY_LOCAL_MACHINE\Software\Borland\Database Engine subtree.

Or maybe someone could give more accurate information on this issue -
I seem to have forgot the details and I don't have access to that NT
server anymore as I quit my previous job.

regards:
Emil Totev

Re:An error occurred while attempting to initialize the Borland Database Engine (error $2108)


Hi again

It seems that I've messed up different things and you need write
access to the registry not for BDE keys, but (as I think you use
Access database)  the DAO keys. Take a look at
http://www.inprise.com/devsupport/bde/qanda/qna28.html

Please let me know if you found the solution with or without my help.

Regards
Emil Totev

Re:An error occurred while attempting to initialize the Borland Database Engine (error $2108)


Hi,

Thanks for all the help you are giving me. I think you maybe right about
the access rights to the registry thingy. But i'm not using MSACCESS at all
i'm using Paradox and DBASE tables and might use Interbase.

I checked the log files and the message corresponding to the error code
says "Can't find configuration file" and the error trapped by the program
which shows up on my web page corresponds to "Can't load/find language
drivers".

I think the later is a cause of the former, meaning, it can't find the
language drivers because it can't find the config file and/or the entries
in the registry.

Write back to me or just post a message.

So u think the only problem now is the Registry access rights.

Manny
mani...@hotmail.com

Quote
>Hi again
> It seems that I've messed up different things and you need write
> access to the registry not for BDE keys, but (as I think you use
> Access database)  the DAO keys. Take a look at
> http://www.inprise.com/devsupport/bde/qanda/qna28.html

> Please let me know if you found the solution with or without my help.

> Regards
> Emil Totev

Re:An error occurred while attempting to initialize the Borland Database Engine (error $2108)


On 14 Oct 1998 12:18:42 GMT, "Manny" <mani...@hotmail.com> wrote:

Quote
>I think the later is a cause of the former, meaning, it can't find the
>language drivers because it can't find the config file and/or the entries
>in the registry.

There we go then... the language drivers that are referenced in the
registry cannot be found... in the BDE 4.51 make sure that you've included
all the BLL files, in BDE 5.0 all the .BTL files.

Stefan
InstallShield Software Corp.

Other Threads