Re: [Firebird-net-provider] [firebird net] Install Firebird / Create Database File

2017-03-17 Thread Wolfgang Riedmann
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


Re: [Firebird-net-provider] .NET provider and embedded server

2016-11-14 Thread Wolfgang Riedmann
Hi Jiří,

thank you, it works now - the database file is created

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: Jiří Činčura [mailto:j...@cincura.net] 
Gesendet: Montag, 14. November 2016 20:59
An: firebird-net-provider@lists.sourceforge.net
Betreff: Re: [Firebird-net-provider] .NET provider and embedded server

Use `Client Library` parameter.

--
Mgr. Jiří Činčura
Independent IT Specialist

On Mon, Nov 14, 2016, at 19:20, Wolfgang Riedmann wrote:
> Hello,
> 
> I've tried to use the latest .NET provider for Firebird with Firebird 
> 3.01. Unfortunately on connecting to a database the driver complains 
> that it cannot find fbembed.
> 
> But for Firebird 3.0 the fbembed.dll was removed and integrated in the 
> client.dll.
> 
> What can I do to make the .NET provider work with Firebird 3.0 databases?
> Unfortunately the use of the fbembed.dll from Firebird 2.5 is not an 
> option as the database files are not compatible between Firebird 2.5 
> and Firebird 3.0.
> 
> Thank you very much for any help!
> 
> Wolfgang
> 
> 
> --
>  ___
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

--
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
--
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider