firebird

How to create index in firebird for improvement of select query

[亡魂溺海] 提交于 2019-12-11 23:43:36
问题 I am newbie in using firebird. I have 3 tables. for T_TABLE1 the structure is shown below: for T_TABLE2 the structure is shown below: and for T_TABLE3 the structure is like this: the primary key is the ID from T_TABLE1 to TBL1_ID in T_TABEL2 and TBL1_ID in T_TABLE3 . How can I select data join with that 3 tables and I want to use index for best select query but I don't know how to create index because I am newbie in using firebird and I want to learn more in using firebird. Hope my

How can I get the name of the database a DBExpress TSqlConnection is actually connected to?

徘徊边缘 提交于 2019-12-11 18:38:00
问题 I'm testing a quite old Delphi 6 application and would like to display the database name the TSqlConnection is actually connected to, so I can see quickly if I'm connected to the test or production database. In sqlconnections.ini, the app has a connection named 'Vienna' to a Firebird database defined like this: Database=192.168.1.15:ProductionDB (it's an alias) and I've replaced that for testing purposes with Database=192.168.1.15:TestDB. But I've seen that just accessing the TSqlConnection's

Trying to use the firebird embedded server - Specified server type is not correct

萝らか妹 提交于 2019-12-11 17:59:34
问题 Running on Windows 7 using Visual Studio 2005, I am attempting to use the embedded firebird server. Having followed installation details provided, I get the message:- Specified server type is not correct. I am using:- FirebirdSql.Data.FirebirdClient.dll version 2.5.2.0. fbembed.dll version 2.5.0.26074 I copied the entire contents of the zip file Firebird-2.5.0.26074-0_Win32_embed.zip to my application directory, as there seem to be a variety of ideas as to what should be there. I also copied

How to get the servername\hostname in Firebird 2.5.x

旧巷老猫 提交于 2019-12-11 17:17:56
问题 I use Firebird 2.5, and I want to retrieve the following values Username: I used SELECT rdb$get_context('SYSTEM', 'CURRENT_USER') FROM ... Database name: I used SELECT rdb$get_context('SYSTEM', 'DB_NAME') FROM ... But for server name, I did not find any client API, do you know how can I retrieve the server name with a SELECT statement. 回答1: There is nothing built-in in Firebird to obtain the server host name (or host names, as a server can have multiple host names) through SQL. The closest

TransactionScope usage in c#

自闭症网瘾萝莉.ら 提交于 2019-12-11 17:06:31
问题 I am developing a windows form application using c# and Firebird database. Now in one of the form I have a save button. When this save button is clicked, it will do some inserts into the database and after that an update. I am using TransactionScope to achieve this. The code under button click event is: try { using (TransactionScope scope = new TransactionScope()) { insert_mentod();//This does some inserts in db update_method();//This method contains update query and INTENTIONALLY contains a

c# DataSet.Fill dreadful performance issues with Firebird 2.5

假如想象 提交于 2019-12-11 16:09:31
问题 REMARK I completely rewrite the question as while exploring options and getting insights, I realized the origin of my problem was not at all what I thought. I use Firebird as a database engine and the standard .Net provider (v.5.11.0) to fetch data using following code: // myBlob1 is BLOB SUB_TYPE 1 (text field) with some empty, but some // VERY long stuff (xml-content) which exceeds VARCHAR(32765), but I removed // those before performing my tests!!! var tick = Stopwatch.StartNew();

Invalid token - invalid request BLR at offset 340 function F_LRTRIM is not defined

巧了我就是萌 提交于 2019-12-11 15:27:10
问题 I am trying to synchronize two Firebird databases with each other. First of all, I already configured that the synchronization will be one-way. Therefore, one database is the Source-DB and the other is the target-DB. To start a synchronization I use IBReplicator! When I start the synchronization, I get the error: Exception: Invalid token invalid request BLR at offset 340 function F_LRTRIM is not defined module name or entrypoint could not be found I started searching for the cause of the

can't show firebird data in php-ubuntu server 12.04

こ雲淡風輕ζ 提交于 2019-12-11 14:18:55
问题 my dataTable can't show data from firebird database. it's happen after I move to new server (old server have hard disk damage). all php data and mysql database already backed up then restore to new server. But, one of my php page can't show data from firebird database (its from another server). the strange point is why in my old server it can show but in the new one it can't ? my server os is ubuntu server 12.04 then I try : sudo apt-get install php5-firebird --> i get firebird2.5 but, my php

Display two unrelated select queries with no mutual fields in one firebird procedure

元气小坏坏 提交于 2019-12-11 14:08:06
问题 How to properly display two unrelated select queries with no mutual fields in on procedure? Table1 Number 1 2 3 4 5 Table2 Letter a When i try to call them using this procedure, CREATE PROCEDURE SAMPLE RETURNS( Number SMALLINT, Letter Varchar) AS BEGIN FOR SELECT A.Number, B.Letter FROM Table1 A, Table2 B INTO :Number, :Letter DO BEGIN SUSPEND; END END; i get this result Number Letter 1 a 2 a 3 a 4 a 5 a here is my desired result Number Letter 1 a 2 3 4 5 回答1: Assuming you want a result set

How to quote column names on the commandline of fbexport

冷暖自知 提交于 2019-12-11 11:59:49
问题 As the title says, how am I going to deal with a column name in FBExport that look like a keyword? this is how my statement looks like: -Q "SELECT a.ID, a.USERID, a.`WHEN`, a.INOUT FROM ATTENDANT a" then I get this error: Engine Code : 335544569 Engine Message : Dynamic SQL Error SQL error code = -104 Token unknown - line 1, column 26 WHEN When I use "WHEN" Error: Switches must begin with - tried 'When' -Q "SELECT a.ID, a.USERID, a.'WHEN', a.INOUT FROM ATTENDANT a;" SQL Message : -104 Invalid