firebird

How do I setup NHibernate with Visual Studio and Firebird?

浪尽此生 提交于 2019-12-06 13:57:42
问题 I'm trying to set up a small app to experiment with NHibernate in visual studio but I'm not getting far. The error I get is: "Could not find the dialect in the configuration". I've tried specifying settings in both app.config and hibernate.cfg.xml but neither seems to work. These files are in the same directory as my app source (tried other directories too). I've tried setting the build action on hibernate.cfg.xml as "embedded resource" but that didn't help either. I get the same error

how to combine tables with 1 to many relationship into 1 line of record

一个人想着一个人 提交于 2019-12-06 13:37:06
I need to combine two tables with 1 to many relationship using union but to no success. I've been trying to use this code select a.equipmentid, a.codename, a.name, a.labelid, a.ACQUISITIONDATE, a.description from TBL_EQUIPMENTMST a where a.partofid = '57' union all select first 1 b.warrantyid, b.startdate, b.enddate from tbl_equipwarranty b inner join TBL_EQUIPMENTMST c on b.equipmentid=c.equipmentid where c.partofid = '57' and b.servicetype='service' order by b.warrantyid desc union all select first 1 d.warrantyid, d.startdate, d.enddate from tbl_equipwarranty d inner join TBL_EQUIPMENTMST e

Firebird database schema/data difference tool

一笑奈何 提交于 2019-12-06 12:32:46
RedGate makes a tool for Microsoft SQL Server that allows you to snapshot the difference between two databases. It generates the scripts needed to update the database schema while preserving the data. I need to find a tool like this for the Firebird database. We use Firebird in an embedded fashion, and would like to push out schema updates to remote machines with as little hassle as possible. I don't know of a tool for Firebird that does exactly the same. However, FlameRobin allows you to extract the metadata for single database objects or the complete database. It can also create scripts to

Firebird UTF-8 German phonebook sorting

喜你入骨 提交于 2019-12-06 12:29:23
Server: Windows 2008 R2 x64 with Firebird 2.5 x64 I need a sorting methode like the German phonebook at a Query e.g. SELECT Name, Forename FROM Address ORDER BY Name, Forename; I want as result: Name, Forename Assemann, Simon Aßmann, Erika Assmann, Frank Astmann, Manfred Hacker, Simon Hackmann, Gustav Häcker, Emil Haecker, Manfred Häcker, Xaver Hafermann, Ulrich In the German phonebook sorting, the German special characters are handled at following way: Ä/ä = Ae/ae Ö/ö = Oe/oe Ü/ü = Ue/ue ß = ss Other special characters like the French ones (á, à…) is handled like the normal characters (a,a…).

Locking tables firebird, delphi

空扰寡人 提交于 2019-12-06 11:17:10
问题 I have two applications. One is main application where exists on demand synchronization from tables one table to another(don't ask me why). Other application fills data from sync table to main table. When other application is running and filling tables I need to know in main application that process is running and forbid sync on demand in main application. I was thinking about making some table and lock it with sync in one transaction. When finish with filling data release the lock. I'm

Export Firebird database to sql

♀尐吖头ヾ 提交于 2019-12-06 10:30:19
I have several databases in Firebird using IBExpert as the GUI admin. I am changing over to MySQL. I can use IBExpert to backup the database (which gives me the full structure and data) but the gbak format can't be read by phpMyAdmin. PhpMyAdmin has an export command that dumps the data and/or structure of the active database to an sql file. Is it possible to do something similar with IBExpert? You can use the FBExport tool to generate a dump with inserts. However I am not sure if it is still maintained and works with the latest Firebird versions (it says it was tested against Firebird 1.0 - 2

Run Firebird query in a background thread and save result set

拈花ヽ惹草 提交于 2019-12-06 06:49:51
问题 i want to put the execution of a query with parameters into a thread-safe class in delphi-2009. I navigate in google but i don't found just what I wanted. Thanks 回答1: I have found that most database API's are only thread safe at the connection level. Firebird may be different, but using InterBase several (8+) years ago, it was not thread safe. Update: I have verified Firebird is only thread safe at the connection level. This means that typically you need to avoid using a single connection

How do I get an exclusive lock on a firebird database to perform schema changes?

試著忘記壹切 提交于 2019-12-06 06:29:13
问题 To be more specific, I am using firebird 2.1 and the DDEX Provider for visual studio, and I'm working in c#. I have a situation where I'm trying to apply schema changes to the database from c# in an effort to "update" my database. During this process I get the following exception from firebird : FirebirdSql.Data.FirebirdClient.FbException: unsuccessful metadata update object INDEX is in use I've interpreted this as a concurency issue where there is another processess accessing the database at

Firebird vs HSQLDB at Java

廉价感情. 提交于 2019-12-06 06:24:59
问题 i wanna write a small (5-6 table) desktop app in java.I wanna use Firebird 2.1. database.But i googled and see HSQLDB.I wanna make a decision between firebird and hsqldb :) So which database i have to use ? 回答1: For a desktop application an embedded database should be enough. hsqldb or h2 are very well suited for this. You just have to add the JAR file to you applications classpath. Firebird looks more complex. Actually, H2 is more advanced than hsqldb. 回答2: Firebird runs in a process of its

Firebird blob to Base64 - Node.js

巧了我就是萌 提交于 2019-12-06 05:56:36
I'm migrating one website with java/jsf for Node/Angular but i have the problem for convert blob from firebird database to base64 using node-firebird. connection.query(query,function(err,rows){ if(err) { res.json({"Error" : true, "Message" : "Error executing query"}); } else { var buffer; var bufferBase64; for(var i = 0; i < rows.length; i++){ rows[i].image(function(err, name, eventEmitter) { eventEmitter.on('data', function(chunk) { buffer = new Buffer(chunk, 'binary').toString('base64'); bufferBase64 += buffer; }); eventEmitter.on('end', function() { console.log(bufferBase64); // print