Hi,

these helped me:

https://blog.cincura.net/224165-firebird-embedded-and-net/
http://stackoverflow.com/questions/8725546/how-to-create-an-embedded-database-using-firebird-in-c-sharp
http://stackoverflow.com/questions/16354712/how-to-programmatically-create-firebird-database

I have this working, but my language (X#) would not help you too much:

        FBConnection.CreateDatabase( cConnString, false )

Where FBConnection is 

public sealed class FirebirdSql.Data.FirebirdClient.FbConnection inherit 
DbConnection implements Icloneable

Wolfgang
        
--
-- Wolfgang Riedmann 
-- Riedmann GmbH - srl.
-- Individuelle EDV-Lösungen - Soluzioni informatiche personalizzate
-- I-39012 Meran, Postgranz 16b
-- Telefon +39 0473 201 239
-- http://www.riedmann.it - wolfg...@riedmann.it

-----Ursprüngliche Nachricht-----
Von: Clyde Eisenbeis [mailto:cte...@gmail.com] 
Gesendet: Freitag, 17. März 2017 17:26
An: For users and developers of the Firebird .NET providers
Betreff: Re: [Firebird-net-provider] [firebird net] Install Firebird / Create 
Database File

I used "FirebirdSql.Data.FirebirdClient.dll" ... which is located in my Debug 
subdir.

The exception is "Unable to find an entry point named 'isc_create_database' in 
DLL 'FirebirdSql.Data.FirebirdClient.dll".

On Thu, Mar 16, 2017 at 2:07 PM, Jiří Činčura <j...@cincura.net> wrote:
> If you are not using the server, then location of your embedded 
> Firebird library.
>
> --
> Mgr. Jiří Činčura
> https://www.tabsoverspaces.com/
>
>
> On Thu, Mar 16, 2017, at 16:04, Clyde Eisenbeis wrote:
>> t) I've tried FbConnection.CreateDatabase ... using info from
>> StackOverflow:
>>
>>     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);
>>
>> I had presumed this is standard, except for the stPathFilename.
>>
>> However, this code throughs an exception ... complains about 
>> fbclient.dll.  I'm not sure what to use for Client Library.
>>
>> On Wed, Mar 15, 2017 at 1:54 PM, Jiří Činčura <j...@cincura.net> wrote:
>> >> FirebirdSql.Data.FirebirdClient.5.8.0 subdir ... with Firebird .dll's.
>> >
>> > To be precise, it's provider, not Firebird.
>> >
>> >> 1) Was the the correct procedure?
>> >
>> > Yes.
>> >
>> >> 2) How do I create a Firebird database file? ... as I did with 
>> >> SQLite ... 
>> >> System.Data.SQLite.SQLiteConnection.CreateFile(stPathFilename)
>> >> where the filename ends with .sqlite.
>> >
>> > FbConnection.CreateDatabase.
>> >
>> > --
>> > Mgr. Jiří Činčura
>> > https://www.tabsoverspaces.com/
>> >
>> >
>> > -------------------------------------------------------------------
>> > ----------- Check out the vibrant tech community on one of the 
>> > world's most engaging tech sites, Slashdot.org! 
>> > http://sdm.link/slashdot 
>> > _______________________________________________
>> > Firebird-net-provider mailing list
>> > Firebird-net-provider@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>>
>>
>> ---------------------------------------------------------------------
>> --------- Check out the vibrant tech community on one of the world's 
>> most engaging tech sites, Slashdot.org! http://sdm.link/slashdot 
>> _______________________________________________
>> Firebird-net-provider mailing list
>> Firebird-net-provider@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>
>
> ----------------------------------------------------------------------
> -------- Check out the vibrant tech community on one of the world's 
> most engaging tech sites, Slashdot.org! http://sdm.link/slashdot 
> _______________________________________________
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech 
sites, Slashdot.org! http://sdm.link/slashdot 
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to