Subject Need a little help - attaching database
Author Thomas Rueger
Hello,
i need a little help from somebody:


I'm using Firebird-1.5.0.4290-embed-win32.

After zipping i renamed fbembed.dll to fbclient.dll


Next Step was calling the function

isc_attach_database

with isc_status, LenStringPathToDatabase,PathDatabase, dbHandle, 0, NULL

(from api development guide, so no Database Parameter Buffer).

There i get the following error:

335544472 , -902, 108 and:

Unsuccessfull execution caused by a system error that precludes successful
execution of subsuquent statements


So i made an char Buffer with following:

1286SYSDBA298Password , meaning : 1 for isc_dpb_version
28 for
isc_dpb_username
6 for Len(SYSDBA)
SYSDBA
29 for
isc_dpb_password
8 for
Len(MypassWord)
Password (My really
8 Char Password)


That i have transfered once more to

isc_attach_database

now with 22 and Pointer to Char Buffer.

Now i get the following error codes:

335544326 , -901 , 114 and the same text.

In error.h i readed that 335544472 meaning error for isc_login, so i made
the Char Buffer, but 335544326 is an errorcode for bad Database Parameter
Buffer.

So can help me somebody just a little bit ?

Thanks...

Thomas Germany


[Non-text portions of this message have been removed]