firebird

Obtaining one value per person from table (“latest-n-per-group before cutoff date”)

微笑、不失礼 提交于 2021-01-28 12:32:04
问题 In a database of mine there is a table called 'Budget' defined as follows CREATE TABLE BUDGET ( ID INTEGER NOT NULL, THERAPIST INTEGER, CURDATE DATE, ILLNESS SMALLINT, HOLIDAY SMALLINT); ALTER TABLE BUDGET ADD PRIMARY KEY (ID); The purpose of the table is to store how many hours a month a therapist is entitled to sick leave and regular holiday. The table has the following values ID: 1, THERAPIST: 36, CURDATE: 01/01/2012, ILLNESS:8, HOLIDAY: 8 ID: 2, THERAPIST: 36, CURDATE: 01/07/2012, ILLNESS

Node-firebird doesn't give results if more than 3 fields in the query

☆樱花仙子☆ 提交于 2021-01-28 12:24:24
问题 I'm testing "node-firebird" with Firebird 2.5 and it runs if I query for 1, 2 or 3 fields, but if I ask for a fourth field, it doesn't give any response. It is not a problem with any exact field because it queries well if I ask for it with less other fields. Depending on the table the number of fields I can query is different. var Firebird = require('node-firebird'); var options = {}; options.host = '127.0.0.1'; options.port = 3050; options.database = 'xxx.FDB'; options.user = 'SYSDBA';

How to trace service firebird

早过忘川 提交于 2021-01-28 02:12:24
问题 How to trace all events for service firebird server with delphi xe10? This is my code: my := TIBControlService.Create(Self); my.ServerName := '127.0.0.1/3050'; my.Protocol := TProtocol.TCP; my.LoginPrompt := false; my.TraceFlags := [tfQPrepare, tfQExecute, tfQFetch, tfError, tfStmt, tfConnect, tfTransact, tfBlob, tfService, tfMisc]; my.Params.Add( 'user_name=SYSDBA' ); my.Params.Add( 'password=masterkey' ); // ----- mh := MonitorHook; mh.TraceFlags := my.TraceFlags; Self.IBSQLMonitor1

how do you connect firebird database to android? [duplicate]

时间秒杀一切 提交于 2021-01-27 13:48:25
问题 This question already has answers here : how to connect to firebird DB on android (3 answers) Closed 1 year ago . I.m working on a project. It's an android app that connects to our server database. Our server uses Firebird. I want to read data from it and display the results in an android app. I've tried looking for tutorials about android and firebird but I can't find any. Does anybody know how? Or any site you could recommend for me to start coding android and firebird? It would be better

Get last month data from first day until last day in Firebird

北城以北 提交于 2021-01-27 05:47:52
问题 I am trying to query Firebird to get data from last month, from day 1 until last day (30 or 31 depending on the month). When I use the code below it gives me shifted dates from current, for example day 11/14/2017 until 12/13/2017. The code: WHERE DATE >= DATEADD(MONTH,-1, CURRENT_TIMESTAMP(2)) AND DATE<= 'TODAY' The desired output is 11/01/2017 - 11/30/2017 What is the correct way to do it? 回答1: I don't use Firebird but I've used PostgreSQL fairly extensively and I think this should work:

How to register Firebird data provider for Entity Framework?

那年仲夏 提交于 2021-01-27 04:11:38
问题 How do I register a Firebird data provider to use it with Entity Framework? What should I do to make it appear in the Entity Data Model Wizard/Choose Data Source window? I expect it to appear in the Data sources: or Data provider: lists. Is it possible? Or I need to configure this connection another way? PS: The provider I'm trying to use is the FirebirdClient 2.5 回答1: You have to install DDEX Provider for Visual Studio http://www.firebirdsql.org/index.php?op=files&id=netprovider http://web

How to register Firebird data provider for Entity Framework?

为君一笑 提交于 2021-01-27 04:11:02
问题 How do I register a Firebird data provider to use it with Entity Framework? What should I do to make it appear in the Entity Data Model Wizard/Choose Data Source window? I expect it to appear in the Data sources: or Data provider: lists. Is it possible? Or I need to configure this connection another way? PS: The provider I'm trying to use is the FirebirdClient 2.5 回答1: You have to install DDEX Provider for Visual Studio http://www.firebirdsql.org/index.php?op=files&id=netprovider http://web

Install customized version of configuration file in Inno Setup after (Firebird) subinstaller finishes

你离开我真会死。 提交于 2021-01-24 11:54:48
问题 I'm trying to install Firebird 3 along with my application using Inno Setup and I need to distribute a customized version of firebird.conf file to replace the default that comes with Firebird. How to do that? Any options of the following would be enough: Copy Firebird.conf after Firebird is installed. (I'm not able to do that since the file added in [Files] section is always copied before running Firebird installation). Download sources for Firebird, add my firebird.conf there and create a

Basic info on how to export BLOB as files

佐手、 提交于 2021-01-08 06:10:25
问题 I have researched on how to export BLOBs to image. A DB has an IMAGE column storing several thousand images. I thought of exporting the table but I get a BLOB file error in EMS SQL Manager for InterBase and Firebird. There have been good posts, but I have still not been able to succeed. SQL scripts to insert File to BLOB field and export BLOB to File This example has appeared on numerous pages, including Microsoft's site. I am using INTERBASE (Firebird). I have not found anything related to

Basic info on how to export BLOB as files

半世苍凉 提交于 2021-01-08 06:06:30
问题 I have researched on how to export BLOBs to image. A DB has an IMAGE column storing several thousand images. I thought of exporting the table but I get a BLOB file error in EMS SQL Manager for InterBase and Firebird. There have been good posts, but I have still not been able to succeed. SQL scripts to insert File to BLOB field and export BLOB to File This example has appeared on numerous pages, including Microsoft's site. I am using INTERBASE (Firebird). I have not found anything related to