firebird

Ordering SQL query by specific field values

血红的双手。 提交于 2019-12-08 15:53:44
问题 I've got a sql query (using Firebird as the RDBMS) in which I need to order the results by a field, EDITION. I need to order by the contents of the field, however. i.e. "NE" goes first, "OE" goes second, "OP" goes third, and blanks go last. Unfortunately, I don't have a clue how this could be accomplished. All I've ever done is ORDER BY [FIELD] ASC/DESC and nothing else. Any suggestions? Edit: I really should clarify: I was just hoping to learn more here. I have it now that I just have

Firebird Transaction Count Exceeded

独自空忆成欢 提交于 2019-12-08 15:47:01
问题 We have an implementation running a Firebird database where we get this error: " Implementation Limit Exceeded - Transactions count exceeded. Perform a backup and restore to make the database operable again. " We know how to fix this by making the database read only, performing backup & restore and making it read write again, however we're not too sure what is causing this. I have a feeling that the transactions is limited to a billion(?). Can anyone confirm that? And what is the correct way

Entity Framework Code First - Firebird migration: No MigrationSqlGenerator?

自作多情 提交于 2019-12-08 11:42:47
问题 I'm searching for a way to update my firebird-database. I tried using migrations: private void btnUpdateDb_Click(object sender, EventArgs e) { DbConnection userDBConnection = ClassBasicRepository.GetDBConnection(); var configuration = new Configuration(); configuration.TargetDatabase = new DbConnectionInfo( userDBConnection.ConnectionString, "FirebirdSql.Data.FirebirdClient"); DbMigrator migrator = new DbMigrator(configuration); migrator.Update(); } DbMigrationsConfiguration: public sealed

SpagoBI + Firebird DataSource (The result set is closed)

半腔热情 提交于 2019-12-08 10:42:37
问题 I am using Spagobi version 3.6.0, Jaybird-2.2.2JDK_1.7 and Firebird 2.5 (x64). I set up a datasource and the testing is OK. I set up a dataset and the preview shows the correct list of colunms, only there is no data. Access via some other SQL viewer shows the data. The error message in the Catalina log is: org.firebirdsql.jdbc.FBSQLException: The result set is closed Does anybody have an idea what I did wrong? 回答1: After some testing the solution to your problem is to specify the connection

why can't I connect python to firebird in ubuntu 12.04?

北慕城南 提交于 2019-12-08 09:54:59
问题 Hi I'm novice in python and firebird too, my problem is i'm trying to connect my python program to a database in firebird, I've installed firebird (is currently on /opt/firebird) I have created my database(test.fdb) with a table(it works fine in the firebird) create table languages ( name varchar(20), year_released integer ); insert into languages (name, year_released) values ('C', 1972); insert into languages (name, year_released) values ('Python', 1991); but when i'm trying to run in pydev

Delphi - TUpdateObject versus OnUpdateRecord for a join SQL statement

别等时光非礼了梦想. 提交于 2019-12-08 09:52:19
问题 I have a pFibdataset(which is working similar to BDEDataset) in which I need to make the following join selection select table.Name as name, table1.Name as name_1, table2.Name as name_2 from table left join table table_1 on table.id=table_1.id left join table table_2 on table.id=table_2.id Fields name, name_1 and name_2 are linked to some data-aware edits. Now, I want after I'm modifying(update,delete,insert operations) the name,name_1 and name_2 fields to be updated in the tables. Based on

SQL - Break a start/end time into 15 minute records

时光总嘲笑我的痴心妄想 提交于 2019-12-08 09:45:35
问题 I've got a record set that consists of a start and end time in two separate fields: id - Int startTime - DateTime endTime - DateTime I'd like to find a way to query a record and return it as X records based on the number of 15 minute intervals found between the start and end times. For example, let's say I have a record like this: id, StartTime, EndTime 1, 1/1/2010 8:28 AM, 1/1/2010 8:47 AM I would return 3 records, the first would represent the 8:15 interval, #2 for the 8:30 interval and

.NET console app with Firebird Client crashes on program end

天涯浪子 提交于 2019-12-08 09:12:19
问题 This is a small project for a friend where the goal is to read data from a given firebird database file and put it into MS Office 2010 Templates...so both Firebird as a database backend and .NET 4.x project type office something is the given stack. I wrote a small (console) test app to get in touch with the firebird embedded database client, and already have the first issue I don't get rid of. My Code is as follows: using System; using System.Collections.Generic; using System.Linq; using

FBSQLException key size exceeds implementation

让人想犯罪 __ 提交于 2019-12-08 07:52:52
问题 create table RHP_EmployeElement ( amount double precision not null, comment varchar(255), loan blob, element_codeId varchar(30), empPrd_emp_code varchar(255), empPrd_emp_folder_codeId numeric(18,0), empPrd_prd_exe_exercice integer, empPrd_prd_exe_fdr_codeId numeric(18,0), empPrd_prd_period integer, primary key (element_codeId, empPrd_emp_code, empPrd_emp_folder_codeId, empPrd_prd_exe_exercice, empPrd_prd_exe_folder_codeId, empPrd_prd_period) ) Firebird 2.5.2 (with 4096 pages size, UTF8

python fdb, trying to connect to an external firebird 1.5 super server

纵饮孤独 提交于 2019-12-08 07:42:35
问题 I'm trying to connect to a Firebird 1.5 database that is located on a server, from my local machine with Python fdb libary. but I'm having no luck. the server is windows 2008 server R1 running Firebird 1.5.6 as a service. It also has a System DSN called firebird . How can i connect to it via python? I'm using this code: import fdb db = fdb.connect(host='192.168.40.28', database="C:\databases\database12.GDB", user='admin', password='admin') but it generates this result: Traceback (most recent