firebird

Firebird global temporary table (GTT), touch other tables?

≡放荡痞女 提交于 2019-12-23 17:44:57
问题 I have a Firebird database (v. 2.5), I'm not allowed to create procedures, views or tables into the database, because of losing support. My view is too long: Too many Contexts of Relation/Procedure/Views. Maximum allowed is 255 I think I can solve this Problem by creating GTT, right? My question is, this GTT will be stored in the Database? When is the GTT deleted? I tried in a copy of my database and created a GTT, after that I closed my connection and reconnected and the GTT was there

Copy records from third table with foreign key to other table

跟風遠走 提交于 2019-12-23 15:58:12
问题 I have three tables: Table1 as master, Table2 as detail for table1 and Table3 as detail for Table2. TABLE1 PK1 INTEGER, FD1 VARCHAR(100) TABLE2 PK2 INTEGER, FK1 INTEGER, FD2 VARCHAR(100) TABLE3 PK3 INTEGER, FK2 INTEGER, FD3 VARCHAR(100) PK1, PK2, PK3 is auto incremented primary keys for table1, table2 and table3 respectively, while FK1 is a foreign key to PK1 and FK2 is a foreign key to PK2. I need to copy one record from Table1 to the same table with all its detail records from Table2 and

Copy records from third table with foreign key to other table

我是研究僧i 提交于 2019-12-23 15:54:02
问题 I have three tables: Table1 as master, Table2 as detail for table1 and Table3 as detail for Table2. TABLE1 PK1 INTEGER, FD1 VARCHAR(100) TABLE2 PK2 INTEGER, FK1 INTEGER, FD2 VARCHAR(100) TABLE3 PK3 INTEGER, FK2 INTEGER, FD3 VARCHAR(100) PK1, PK2, PK3 is auto incremented primary keys for table1, table2 and table3 respectively, while FK1 is a foreign key to PK1 and FK2 is a foreign key to PK2. I need to copy one record from Table1 to the same table with all its detail records from Table2 and

Creating a database in Firebird using FireDac (Delphi)

假装没事ソ 提交于 2019-12-23 14:55:24
问题 I recently changed from AnyDac to FireDac (8.0.5.3365). We're running Delphi 2006. When I was using the AnyDac version of this component I could create a new database by doing the following.. Setup my connection fConnection.LoginPrompt := false; fConnection.ResourceOptions.SilentMode := true; fConnection.Params.Clear; fConnection.Params.Add(Format('DriverID=%s', ['IB'])); fConnection.Params.Add(Format('Database=%s', [fConnectionInfo.xDatabase])); fConnection.Params.Add(Format('CharacterSet=%s

How can I measure the amount of space taken by blobs on a Firebird 2.1 database?

蹲街弑〆低调 提交于 2019-12-23 09:33:22
问题 I have a production database, using Firebird 2.1, where I need to find out how much space is used by each table, including the blobs. The blob-part is the tricky one, because it is not covered using the standard statistical report. I do not have easy access to the server's desktop, so installing UDFs etc. is not a good solution. How can I do this easily? 回答1: You can count total size of all BLOB fields in a database with following statement: EXECUTE BLOCK RETURNS (BLOB_SIZE BIGINT) AS DECLARE

NHibernate with Firebird… are these features enabled?

好久不见. 提交于 2019-12-23 07:47:57
问题 We're using NHibernate to great success with a Firebird backend. My question relates to the features available in NHibernate being supported by Firebird. If you have any expertise with Firebird and NHibernate your comments are welcome. Does Firebird support "Future" queries? From my reading it would appear that Firebird is one of a few databases that doesn't support this feature. Does anyone have a workaround as "Future" would be a good feature to utilise. Does Firebird support the NHibernate

how to connect to a firebird database in delphi 7 through a local network?

落花浮王杯 提交于 2019-12-23 05:28:07
问题 how do i connect my delphi 7 app to a local network? i am using zeos and have set up the ZConnection1 hostname setting to the ip of my server in the object inspector, i can connect on the computer i am coding right now but cant connect to the dabatase with another computer from the network. i have set the database path to C:\Documents and Settings\Administrator\My Documents\test.FDB. do i need to change it to an ip address? thanks the components i used are 1 zconnection 1 ztable 1 data source

Convert fbk (firebird) file to MySql

末鹿安然 提交于 2019-12-23 04:54:40
问题 I have firebird database file and I want to convert it into Mysql, but I don't know how. Can you help me how to convert it? Or can you give me the reference what software I have to use to convert it? Thank you 回答1: You have to use FBExport tool to generate a dump with inserts FBExport.exe -D "c:\DB\WL.FDB" -U user –P password -Si -V TEST -F test.out Where: Si – means “export to SQL inserts” format V – table name to export F – output filename Be careful with dates in mysql. Export in the

Firebird database schema/data difference tool

江枫思渺然 提交于 2019-12-22 13:53:51
问题 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. 回答1: I don't know of a tool for Firebird that does exactly the same. However, FlameRobin allows you

Firebird blob to Base64 - Node.js

妖精的绣舞 提交于 2019-12-22 12:28:08
问题 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');