firebird-embedded

firebird embedded multiple inserts using .net provider

天大地大妈咪最大 提交于 2020-01-16 03:29:07
问题 I am developing an application that will use firebird embedded and/or postgres depending on user sophistication. The argument for firebird embedded is that there should be less installation, firewall, UAC, etc issues. So far postgres is like walking on clouds but I have hit a roadblock with firebird. The app is .net and I am using this provider http://www.firebirdsql.org/en/net-provider/ version 3.0.2 Everything technically works but with firebird embedded I am inserting only around 100

Firebird embeded and EntityFramework code first: what's the correct way to set connection string and provider?

自闭症网瘾萝莉.ら 提交于 2020-01-05 12:11:22
问题 I have to use Firebird embeded database and Entity Framework. I have downloaded the Connector and if i use this code: using FirebirdSql.Data.FirebirdClient; [...] string exePath = Path.GetDirectoryName( new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath); FbConnectionStringBuilder fbStringBuilder = new FbConnectionStringBuilder(); fbStringBuilder.ServerType = FbServerType.Embedded; fbStringBuilder.UserID = "SYSDBA"; fbStringBuilder.Password = "MASTERKEY"; fbStringBuilder.Dialect = 3;

Firebird embeded and EntityFramework code first: what's the correct way to set connection string and provider?

痞子三分冷 提交于 2020-01-05 12:10:22
问题 I have to use Firebird embeded database and Entity Framework. I have downloaded the Connector and if i use this code: using FirebirdSql.Data.FirebirdClient; [...] string exePath = Path.GetDirectoryName( new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath); FbConnectionStringBuilder fbStringBuilder = new FbConnectionStringBuilder(); fbStringBuilder.ServerType = FbServerType.Embedded; fbStringBuilder.UserID = "SYSDBA"; fbStringBuilder.Password = "MASTERKEY"; fbStringBuilder.Dialect = 3;

The type of the SQL statement could not be determinated

送分小仙女□ 提交于 2019-12-13 02:08:41
问题 When I'm trying to execute following query <!-- language: sql --> CREATE TABLE STUDENT ( ID INTEGER NOT NULL PRIMARY KEY, NAME VARCHAR(255) NOT NULL ); CREATE GENERATOR GEN_STUDENT_ID; SET TERM ^ ; CREATE OR ALTER TRIGGER STUDENT_BI FOR STUDENT ACTIVE BEFORE INSERT POSITION 0 AS BEGIN IF (NEW.ID IS NULL) THEN NEW.ID = GEN_ID(GEN_STUDENT_ID,1); END^ SET TERM ; ^ I'm getting the error "The type of the SQL statement could not be determinated" This script is running by c# code

Embedded firebird not accepting create table statement

两盒软妹~` 提交于 2019-12-11 10:55:29
问题 The following SQL code works very well on MYSQL, and it contains valid SQL query language. However this doesn't work on embedded Firebird server. The SQL code: CREATE TABLE publications ( id int(11) NOT NULL, filename varchar(500) NOT NULL, title varchar(500) DEFAULT NULL, authors varchar(1000) DEFAULT NULL, uploader int(7) DEFAULT NULL, keywords varchar(500) DEFAULT NULL, rawtext text, rawbinarydata blob NOT NULL, lastmodified timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT

How to use events on an Embedded Firebird database connection?

被刻印的时光 ゝ 提交于 2019-12-10 18:04:41
问题 If I connect to an embedded Firebird database, and create a remote event, I get System.NotSupportedException: Specified method is not supported.. on the constructor. _fbRemoteEvent = new FbRemoteEvent(_fbConnection); //_fbConnection is valid and Opened Looking at source code from call stack, it leads to FesDatabase.cs with RemoteEvent IDatabase.CreateEvent() { throw new NotSupportedException(); } I use the embedded version for automated tests purpose ... Is there something I can do to get

New embedded Firebird, code first, EF6 project results in SerializationException

烈酒焚心 提交于 2019-12-10 17:39:24
问题 I'm trying to set up Firebird with EF6 as an embedded server for a simple app I'm writing but haven't been able to get it to work. I have a CLI project which is the app and the DAL project which is the DB. I added the NuGet packages to both and created a DbContext with a simple entity, and created an initial migration successfully, but when trying to run update-database to execute the migration I received this error in the Package Manager Console: System.Runtime.Serialization

Firebird .NET provider and embedded server 3

梦想与她 提交于 2019-12-10 13:21:26
问题 I'm trying to use .NET Firebird Provider to connect to the embedded FB 3.0.1 server. As far as I know, (also written here (page 6)), there is no more fbclient.dll\fbembed.dll but a single client fbclient.dll used for remote and embedded access. But when I call the FBConnection.Open() I get a System.DllNotFoundException: Unable to load DLL 'fbembed': Impossible to find the specified module (Exception from HRESULT: 0x8007007E). Any ideas? 回答1: Looking in the Provider code the default Client

.NET console app with Firebird Client crashes on program end

天涯浪子 提交于 2019-12-08 09:12:19
问题 This is a small project for a friend where the goal is to read data from a given firebird database file and put it into MS Office 2010 Templates...so both Firebird as a database backend and .NET 4.x project type office something is the given stack. I wrote a small (console) test app to get in touch with the firebird embedded database client, and already have the first issue I don't get rid of. My Code is as follows: using System; using System.Collections.Generic; using System.Linq; using

Connecting to Firebird database from Windows local network

独自空忆成欢 提交于 2019-12-02 15:01:16
问题 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