firebird-embedded

Problem connecting to Firebird 3 embedded with C# in .NET

两盒软妹~` 提交于 2019-12-02 12:38:30
问题 I am trying to connect to Firebird 3 embedded database from a .NET project. I have copied all the files of Firebird to the executing directory of the application. I have used the following connection string builder: var builder = new FbConnectionStringBuilder() { UserID = v1, Password = v2, Database = v3, ServerType = FbServerType.Embedded, Charset = "UTF8", ClientLibrary = "fbclient.dll" }; However I get the following connection error FirebirdSql.Data.FirebirdClient.FbException (0x80004005):

Connecting to Firebird database from Windows local network

陌路散爱 提交于 2019-12-02 10:24:12
I have been writing a small Python app for several weeks. The application reads data from a Firebird database and it copies it to another DB. I'm using FDB with Firebird embedded. This is my connection code. def createConnectionTo(path): try: connection = fdb.connect( database=path, user='SYSDBA', password='masterkey', charset='WIN1252' ) print("Connessione al database riuscita!\n") return connection except fdb.fbcore.DatabaseError as details: errorMsg = "ERRORE: impossibile connettersi al database!\nPer favore scegliere un altro file.\n\nDETTAGLI\n"+str(details).replace("\\n", "\n")+"\n"

Problem connecting to Firebird 3 embedded with C# in .NET

徘徊边缘 提交于 2019-12-02 05:42:51
I am trying to connect to Firebird 3 embedded database from a .NET project. I have copied all the files of Firebird to the executing directory of the application. I have used the following connection string builder: var builder = new FbConnectionStringBuilder() { UserID = v1, Password = v2, Database = v3, ServerType = FbServerType.Embedded, Charset = "UTF8", ClientLibrary = "fbclient.dll" }; However I get the following connection error FirebirdSql.Data.FirebirdClient.FbException (0x80004005): Unable to complete network request to host "xnet://Global\FIREBIRD". Unable to complete network

“Unknown data type” error with Firebird embedded and Entity Framework 6

此生再无相见时 提交于 2019-12-02 01:25:56
问题 I'm using an embedded Firebird database with code first (Entity Framework 6). The first time the application runs, it works fine: the database gets created and the data gets inserted. But every time it runs after that, it throws the following exception: An exception of type 'System.NotSupportedException' occurred in FirebirdSql.Data.FirebirdClient.dll but was not handled in user code Additional information: Unknown data type The project includes the following NuGet packages: EntityFramework

“Unknown data type” error with Firebird embedded and Entity Framework 6

时光毁灭记忆、已成空白 提交于 2019-12-01 20:19:33
I'm using an embedded Firebird database with code first (Entity Framework 6). The first time the application runs, it works fine: the database gets created and the data gets inserted. But every time it runs after that, it throws the following exception: An exception of type 'System.NotSupportedException' occurred in FirebirdSql.Data.FirebirdClient.dll but was not handled in user code Additional information: Unknown data type The project includes the following NuGet packages: EntityFramework [6.0.2] Firebird ADO.NET Data provider (Entity Framework 6) [4.1.0.0] I added the DbProviderFactories

Firebird embedded installation issue: library could not be determined

十年热恋 提交于 2019-12-01 10:56:57
问题 I've been writing a small Python application that opens a Firebird database. To achieve this goal I'm using Firebird embedded 2.5.7.27050, 64 bit. Although, whenever I try to connect to the DB file with Python, I get the following error: Traceback (most recent call last): File "C:\Matteo\CMakeR\initApp.py", line 36, in <module> connection = connectToDB(path) File "C:\Matteo\CMakeR\initApp.py", line 10, in connectToDB charset='WIN1252' File "C:\Program Files\Python36\lib\site-packages\fdb

How do INSERT INTO Firebird, with autoincrement for the primary key?

天涯浪子 提交于 2019-11-28 11:25:45
问题 How do INSERT INTO Firebird, with autoincrement for the primary key? For the table fields I have: fstPriority VARCHAR(30), fstInfo VARCHAR(100), fstDateCreated VARCHAR(30), fstDateModified VARCHAR(30), fiKeyID INTEGER PRIMARY KEY For the INSERT INTO I have: FbConnection fbConn = new FbConnection(stOpenConn)) fbConn.Open(); ... FbTransaction fbTransaction = fbConn.BeginTransaction(); FbCommand fbCmd = new FbCommand("INSERT INTO " + stTableName + "(" + stFieldNames + ") VALUES ( @p0, @p1, @p2,