Subject | Re: [firebird-support] Basic Start |
---|---|
Author | Slavomir Skopalik |
Post date | 2017-03-15T17:18:24Z |
Hi,
I never used embedded, but seems to be, that you using wrong dll name.
Try to read this topic:
https://www.codeproject.com/Articles/9445/Embedded-Firebird-Full-Featured-Embedded-Database
http://stackoverflow.com/questions/26179554/unable-to-access-embedded-firebird-database-server-with-net-client
For start is better to install full server and connect by TCP.
Slavek
PS: Because of P/Invoke you must specify exactly target platform (32 or
64 bit) and this platform must match with embedded dll.
Ing. Slavomir Skopalik
Executive Head
Elekt Labs s.r.o.
Collection and evaluation of data from machines and laboratories
by means of system MASA (http://www.elektlabs.cz/m2demo)
-----------------------------------------------------------------
Address:
Elekt Labs s.r.o.
Chaloupky 158
783 72 Velky Tynec
Czech Republic
---------------------------------------------------------------
Mobile: +420 724 207 851
icq:199 118 333
skype:skopaliks
e-mail:skopalik@...
http://www.elektlabs.cz
On 15.3.2017 16:32, Clyde Eisenbeis cte677@... [firebird-support]
wrote:
I never used embedded, but seems to be, that you using wrong dll name.
Try to read this topic:
https://www.codeproject.com/Articles/9445/Embedded-Firebird-Full-Featured-Embedded-Database
http://stackoverflow.com/questions/26179554/unable-to-access-embedded-firebird-database-server-with-net-client
For start is better to install full server and connect by TCP.
Slavek
PS: Because of P/Invoke you must specify exactly target platform (32 or
64 bit) and this platform must match with embedded dll.
Ing. Slavomir Skopalik
Executive Head
Elekt Labs s.r.o.
Collection and evaluation of data from machines and laboratories
by means of system MASA (http://www.elektlabs.cz/m2demo)
-----------------------------------------------------------------
Address:
Elekt Labs s.r.o.
Chaloupky 158
783 72 Velky Tynec
Czech Republic
---------------------------------------------------------------
Mobile: +420 724 207 851
icq:199 118 333
skype:skopaliks
e-mail:skopalik@...
http://www.elektlabs.cz
On 15.3.2017 16:32, Clyde Eisenbeis cte677@... [firebird-support]
wrote:
> Slavek,
>
> Here is what I'm attempting:
>
> int pageSize = 4096;
> bool forcedWrites = true;
> bool overwrite = false;
> var connectionString = new FbConnectionStringBuilder
> {
> Database = stPathFilename,
> ServerType = FbServerType.Embedded,
> UserID = "SYSDBA",
> Password = "masterkey",
> ClientLibrary = "fbclient.dll"
> }.ToString();
> FbConnection.CreateDatabase(connectionString, pageSize, forcedWrites,
> overwrite);
>
> This code throughs a exception ... complains about fbclient.dll. I'm not
> sure what to use for Client Library.
>
>