firebird2.5

The type of the SQL statement could not be determinated

送分小仙女□ 提交于 2019-12-13 02:08:41
问题 When I'm trying to execute following query <!-- language: sql --> CREATE TABLE STUDENT ( ID INTEGER NOT NULL PRIMARY KEY, NAME VARCHAR(255) NOT NULL ); CREATE GENERATOR GEN_STUDENT_ID; SET TERM ^ ; CREATE OR ALTER TRIGGER STUDENT_BI FOR STUDENT ACTIVE BEFORE INSERT POSITION 0 AS BEGIN IF (NEW.ID IS NULL) THEN NEW.ID = GEN_ID(GEN_STUDENT_ID,1); END^ SET TERM ; ^ I'm getting the error "The type of the SQL statement could not be determinated" This script is running by c# code

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

How to create a table then commit then insert then commit and drop table?

好久不见. 提交于 2019-12-12 03:45:36
问题 Hi I am having a problem committing to a database. I am very new to Firebird SQL. But I have a query that creates a table, then commits it, then inserts it, commits it, view the data, drop the table and then commit it again. I am trying to do this dynamically where I can hit the execute button once and it just follows through. Is there a way to do that? This is the query. create table bp_customCollections( part_number varchar(255) ,part_description varchar(255) ,guided_reading_level varchar

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();

Return only most recent entry per id

亡梦爱人 提交于 2019-12-11 10:38:36
问题 I'm running this SQL script on my Firebird 2.5-DB: SELECT aktivitaet.creationdatetime, (select STRINGPROPVALUE from PROPERTY WHERE PROPERTYNAME LIKE 'GlobalDokPfad') as basispfad, aktivitaet.pfad, cast(rechnung.datum as date), rechnung.nummer, projekt.code, cast(rechnung.verrtotal as numeric(10,2)), projekt.betreffend FROM rechnung INNER JOIN aktivitaetenlink ON rechnung.bold_id=aktivitaetenlink.eintraege INNER JOIN aktivitaet ON aktivitaetenlink.aktivitaeten=aktivitaet.bold_id Left JOIN

Firebird 2.5 reports “is not a valid database” although it is

佐手、 提交于 2019-12-11 06:37:36
问题 I've got two computers both running Firebird (let's called them A and B) and two database files (let's call them a.fdb and b.fdb), both copied to both computers. On B I get the message b.fdb is not a valid database The other files work, on A both files work. This would be easy to explain, if B was an older version, but it's a newer one (it was FB 2.1, and because of this problem I installed FB 2.5). The files a.fdb and b.fdb have ODS 11.1 and 10.1, respectively. It looks like new versions of

Why does Firebird 2.5.8 return NONE on SELECT CURRENT_ROLE?

落爺英雄遲暮 提交于 2019-12-11 00:31:03
问题 Following on from my question here How to REVOKE ROLE GRANTED BY another user on Firebird 2.5.8? and @Arioch's helpful suggestion to query what ROLE is actually connected prior to the command. SELECT CURRENT_ROLE FROM RDB$DATABASE Now despite my connection string explicitly using "ROLE=RDB$ADMIN", checking in gsec that the given user has admin option, when I run the command the result is NONE. This was using the Firebird ADO.NET FirebirdSql.Data.FirebirdClient interface v6.6. So I performed a

Firebird exception: Table unknown [duplicate]

╄→гoц情女王★ 提交于 2019-12-10 18:02:59
问题 This question already has an answer here : firebird isql: “there is no table XXXX in this database” (1 answer) Closed 3 years ago . I could establish the connection to a Firebird database with the following connection string: ConnectionString = "User ID=SYSDBA;Password=masterkey;Database=localhost:C:\\MyDb\\mydb.FDB;DataSource=localhost;Charset=NONE;"; But when the C# code tries to execute the query the following error comes: Dynamic SQL Error SQL Error Code = -204 Table unknown The code that