firebird

dbExpress/No key specified

帅比萌擦擦* 提交于 2019-12-12 10:47:10
问题 I am working on a database program, using the dbExpress components (Delphi 7). The data is retrieved from the database via the following components: TSQLDataSet -> TDataSetProvider -> TClientDataSet -> TDatasource -> TDBEdit. Until now, the form has worked correctly. The query in the TSQLDataset is select id, name, byteken, timeflag from scales where id = :p1 I added a large (2048) varchar field to the database table; when I add this field to the above query (and connect either a TDBMemo or a

How does suspend work in firebird?

本秂侑毒 提交于 2019-12-12 08:54:15
问题 I have a table t with one column i of type int, with a few rows. I want to loop over it. Of course, I can write a select query for this. But I am learning procedures and wrote a procedure, set term ^; create procedure qt returns(a int) as begin for select i from t into :a do suspend; end^ set term ;^ But when I call this procedure, I only get one row back, execute procedure qt; I see, A ============ 1 I think I do not understand suspend . 回答1: Stored procedures with a SUSPEND in them are so

Error in using Embeded Firebird

被刻印的时光 ゝ 提交于 2019-12-12 05:16:21
问题 I used telerik OpenAccess to connect to firebird Database with this ConnectionString : "ServerType=1;User=SYSDBA;Password=masterkey;Dialect=3;Database=TEST.fdb" and when i want to select my tables i get this error : I download Firebird-2.5.1.26351-0_x64_embed.zip and copy the following File in my output folder: fbembed.dll firebird.conf firebird.msg ib_util.dll icuin30.dll icudt30.dll icuuc30.dll 回答1: Use ClientLibrary connection string parameter to specify where the fbembed.dll is (or put it

Row number in query result

南楼画角 提交于 2019-12-12 04:32:23
问题 I have query to get firms by theirs sales last year. select Name, Sale from Sales order by Sale DESC and I get Firm 2 | 200 000 Firm 1 | 190 000 Firm 3 | 100 000 And I would like to get index of row in result. For Firm 2 I would like to get 0 (or 1 ), for Firm 3 1 (or 2 ) and etc. Is this possible? Or at least create some sort of autoincrement column. I can use even stored procedure if it is needed. 回答1: Firebird 3.0 supports row_number() which is the better way to do this. However for

What is DPB mean for in Firebird and how to use isc_dpb_trusted_auth parameter?

被刻印的时光 ゝ 提交于 2019-12-12 04:11:38
问题 What does DPB mean in Firebird, and how to use isc_dpb_trusted_auth parameter? 回答1: What does DPB mean in Firebird Most probably it is "Database Parameter Buffer", and there is TPB for "Transaction...." and SPB for "Service ..." (used in Services API). And Firebird 2.1.7 bugslist has the following quote: The engine was incorrectly populating integer containers in the blob parameter buffer (BPB) I think those abbreviations were conceived more than 30 years ago, when the database today known as

I need to backup or clone one remote firebird database or export it to Sql server

空扰寡人 提交于 2019-12-12 03:58:58
问题 I have a legacy system using a remote Firebird 2.5 database. I need to clone this database for backup. I do not have access to file system of the server, I can only access it with connection string. How can I do this? 回答1: You can use GBAK command to backup remote database to local hard disk. Here's the GBAK command: gbak -b -v 192.168.0.20:/dbases/mydb.fdb C:\mybackup.fbk -user SYSDBA -pass 123456 来源: https://stackoverflow.com/questions/43472517/i-need-to-backup-or-clone-one-remote-firebird

How to solve connection error in c# while using firebird embeded database?

[亡魂溺海] 提交于 2019-12-12 03:51:00
问题 I develope a desktop application with firebird embeded database. I download FirebirdSql.Data.FirebirdClient.dll.I add this dll to reference. I add these file to output folder aliases.conf fbembed.dll firebird.conf firebird.msg ib_util.dll icudt30.dll icuin30.dll icuuc30.dll And I use this connection string String connectionString="ServerType=0;User=SYSDBA;Password=masterkey;Dialect=3;Database=mydb.fdb"; FbConnection con = new FbConnection(connectionString); try { con.Open(); } catch

delphi 2010 and dbexpress firebird driver

半腔热情 提交于 2019-12-12 03:41:40
问题 I am getting to know the dbexpress firebird driver from Chau Chee-Yang (http://sites.google.com/site/dbxfirebird/) I find it hard to install because there is very little information, I succeded making a connection, but several questions arise: When using the data explorer and I want to connect to the database sends me the following error: --------------------------- Database Explorer --------------------------- The located assembly's manifest definition does not match the assembly reference.

Programming with Apache::DBI and firebird. Get Stucked httpd on exception

痞子三分冷 提交于 2019-12-12 02:28:45
问题 I have an issues on Web application programming with Firebird. I'm using mod_perl and Apache::DBI with Firebird. And also using CGI::Session for session handling. CGI::Session uses an already connected $dbh with Firebird. AutoCommit is ON. Every(multiple) sql execution is wrapped by eval {} statement. for example, $dbh = DBI->connect("dbi:Firebird:db=$DBSERVER:/home/cdbs/xxnet.fdb; ib_charset=UTF8;ib_dialect=3",$DBUSER,$DBPASS,{ AutoCommit=>1, LongReadLen=>8192, RaiseError=>1 }); eval { $dbh-