firebird

Firebird - get all modified fields inside a trigger

烈酒焚心 提交于 2019-12-05 01:10:21
I need to get all the values which changed in a row and post modifications on other 'audit' table. Can I accomplish this, without writing the conditions for each element from the row? I know the SQL from http://www.firebirdfaq.org/faq133/ which gives you all the conditions for verifications: select 'if (new.' || rdb$field_name || ' is null and old.' || rdb$field_name || ' is not null or new.' || rdb$field_name || 'is not null and old.' || rdb$field_name || ' is null or new.' || rdb$field_name || ' <> old.' || rdb$field_name || ') then' from rdb$relation_fields where rdb$relation_name =

List all unused domains for a Firebird database

落花浮王杯 提交于 2019-12-04 23:48:11
问题 Is there a quick way to list all Firebird domains defined for a database that are actually not used by any field ? I have a large database with many tables and many domains and it seems that a lot of them are not anymore used, so I guess it's time for a cleanup ! I think this is possible by querying the RDB$... system tables, but I'm unsure how to do this. 回答1: SELECT f.rdb$field_name FROM rdb$fields f LEFT JOIN rdb$relation_fields rf ON rf.rdb$field_source = f.rdb$field_name WHERE rf.rdb

Firebird: DBExpress or native components?

萝らか妹 提交于 2019-12-04 21:01:01
问题 I am starting with Firebird and have found components to access a database by Devart. They offer native components (IBDAC) or DBExpress drivers. (I am using Delphi XE2 Pro which doesn't include Firebird drivers) I guess native components are a bit faster, but that's not too important for me. What are the advantages/disadvantages of each approach and why should I choose one over the other? 回答1: IBdac your application is tied to firebird you are familiar with bde or ado performance maximal

How do I setup NHibernate with Visual Studio and Firebird?

三世轮回 提交于 2019-12-04 20:10:48
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 message even if I completely remove these config files. I've looked at various examples on the net but can't

How to input an array parameter of values to Firebird Stored Procedure?

夙愿已清 提交于 2019-12-04 19:54:39
问题 I would like to input an array parameter of IDs to Firebird Stored Procedure . :INPUT_LIST_ID = [1, 2, 12, 45, 75, 45] I'm need to execute this SQL command: SELECT * FROM CITY WHERE ID_CITY IN (:INPUT_LIST_ID) Is it possible? Thanks! 回答1: You could also use something like this: SELECT * FROM CITY WHERE ID_CITY IN (SELECT ID FROM GetIntegerList('1, 2, 12, 45, 75, 45')) You would have to create a new Firebird Procedure called "GetIntegerList" which would look something like this: CREATE OR

Locking tables firebird, delphi

吃可爱长大的小学妹 提交于 2019-12-04 18:01:52
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 interested in the way how to do it in delphi, how to set transaction in sync and in main application? How to

Does Firebird ADO.NET 4.10.0.0 Data provider work with Firebird 3.0?

回眸只為那壹抹淺笑 提交于 2019-12-04 14:52:47
I'm currently trying to get my ASP.net 4.5 project connecting to the recently release Firebird 3.0. I'm using Visual Studio 2015 Community edition, Firebird 3 (64 bit), and used NuGet to get the ADO.NET 4.10.0.0. However, when I try to connect, I get an exception withe the following message: this.connect.ServerVersion threw an exception of type 'System.InvalidOperationException' Some other messages that I get: Message: "The connection is closed" Source: FirebirdSQL.Data.Fierbird.Client StackTrace: at FirebirdSql.Data.FirebirdClient.FbConnection.get_ServerVersion() in C:\Users\Jiri\Documents

Connecting Firebird to an ASP.net WebAPI Project

假装没事ソ 提交于 2019-12-04 14:48:34
I'm in the process of learning ASP.net, specifically WebAPI and MVC. I'm using Visual Studio Community 2013, .NET 4.5, and C#. I'm a total newb so I'm actually going through this particular walkthrough to understand how things work: http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api It's been ok so far, but I want to move on to connecting a database to populate my dataset. I'm very familiar with using Firebird and was able to install Firebird as a dataprovider (through NuGet and installing the appropriate DDEX files). Unfortunately, I'm having

Firebird vs HSQLDB at Java

ぃ、小莉子 提交于 2019-12-04 13:15:36
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 ? 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 . Firebird runs in a process of its own and your java app needs to communicate with it. The advantage HSQLDB has that it is written in java, and can

Run Firebird query in a background thread and save result set

 ̄綄美尐妖づ 提交于 2019-12-04 11:57:41
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 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 from more than one thread at the same time. The execution of a query against a given connection applies. Avoid