Questions tagged [firebird]
Firebird is a free and open-source, cross-platform, client-server SQL relational database management system, running on Linux, Unix, and Windows. Please mention your exact Firebird version when asking questions.
3,673
questions
1
vote
1
answer
26
views
How to set generator to max value of column
How to set generator to max value of column in Firebird 2.5
I've tried this
ALTER SEQUENCE GEN_ID_PROCESSO_ITEM RESTART WITH (SELECT max(id_processo_item) FROM LICITACAO_PROCESSO_ITEM )
SET ...
-1
votes
0
answers
25
views
PHP - PDO - Firebird: SQLSTATE[HY000]: General error: -104 Dynamic SQL Error SQL error code = -104 [duplicate]
I'm updating this question because, despite having made the previously suggested adjustment to my connection class to accurately report the error, I still haven't found a solution.
I'm trying to ...
1
vote
2
answers
34
views
SQL multiple joins and replacing values from distinct queries
I'll preface this by saying I don't get involved in SQL at all really. We have an internal piece of hardware that stores tests in a Firebird SQL database. The organisation is somewhat confusing, but I'...
0
votes
0
answers
53
views
How to handle class 'bytes' when reading data from Firebird using Python
This snippet of code is responsible for dumping the data in a fdb file into a json file
import fdb
import json
import sys
import decimal
import datetime
def js(val):
if type(val) == int:
...
0
votes
1
answer
36
views
Dynamic SQL Error - SQL error code = -104 Token unknown happening on "select * from table". Python Firebird
I seem to be getting an error while trying to dump all the data from the fdb file.
That was the error. 'BLOB' is the name of the table
("Error while preparing SQL statement:\n- SQLCODE: -104\n- ...
1
vote
1
answer
28
views
How to fix error "The system cannot find the file specified." when trying to access a Firebird database
My approach so far has been very straightforward but I'm struggling to get the fdb file parsed and connected.
I downloaded the correct version of Firebird (2.5) for the file I have. I attempted to do ...
-1
votes
0
answers
55
views
How to use the ENCRYPT function on Firebird?
I'm new to using the Firebird Database Management System and I need to use the ENCRYPT function in my project.
In my project I have been trying to use the following statement for testing:
INSERT INTO ...
0
votes
0
answers
24
views
How to solve: I/O error during "open" operation for file "/home/ubuntu/Firebird4.0/A.fdb"
I am trying to connect FDB file with isql.
SQL> connect "14.208.100.213/3050:/home/ubuntu/Firebird4.0/A.fdb " user 'SYSDBA' password 'masterkey';
After this i got the error:
Statement ...
0
votes
0
answers
56
views
Inconsistent metadata - Connecting to Firebird from SQL Server Management Studio using ODBC Driver for Firebird
We have a Firebird 3.0.8 database we want to add as a linked server to SQL Server Management Studio. We downloaded the ODBC Driver for Firebird 3.3 and created a ODBC Data-Source:
The database used ...
0
votes
0
answers
30
views
How can I install Firebird 4.0 version on Ubuntu?
I need to install Firebird 4.0 version on Ubuntu. When I installed Firebird like that:
sudo apt-get install firebird-server
I noticed that it was 3.0 version. Then I uninstalled it. How can I ...
2
votes
1
answer
33
views
How to find a value in all tables on firebird?
How to search for a value in all tables on Firebird?
Knowing a value, I need to find all tables, columns in which it occurs.
Someone can help me please? I have no clue where to start.
I'm using ...
1
vote
0
answers
37
views
Parametrized OPENQUERY on Firebird database token unknown error message
I've been at this for a little longer then I'd like to admit.
From a SQL Server database, I'm trying to run a dynamic OPENQUERY on a Firebird database, but I'm getting in all kinds of trouble with the ...
1
vote
0
answers
42
views
Updating database script can't process quotations ( 'x' )
I have been struggling to update a record. I need to update a record with the following query:
UPDATE TRIPSHEETDETAILS
SET MAIL_OFD = 1
WHERE DELNO = '0000204258'
Where I am struggling ...
0
votes
1
answer
38
views
How can I connect to a Firebird database JDBC driver using Python?
I want to connect Firebird database. And I am using DBeaver for Firebird database. However, I need to connect Firebird using Python. I have found connecting with ODBC driver but I am using JDBC driver....
1
vote
0
answers
31
views
Can't build Firebird SQL on Oracle Linux 8 Ampere V1 (arm64) [duplicate]
I'm not, by any means, a C++ expert and Linux neither. I just want to take the oracle free tier a spin.
4 CPU's with 24gb seems too good for personal projects.
I'm trying to build v4.0.2 from source ...
1
vote
1
answer
35
views
Firebird database in Embedded in C# with Entity Framework
Can Firebird database be used in embedded mode like SQLite? When working with Entity Framework in SQLite, if I write the database name in the connectionString (example.db), when I run it, a new ...
0
votes
0
answers
35
views
org.firebirdsql.jdbc.FBSQLExceptionInfo: validation error for column "USERS"."CPF", value "*** null ***"
I'm getting a null value even filling the field and passing the correct parameters, but something is not coming out right,
look at this login page image filled in correctly
https://uploaddeimagens.com....
0
votes
0
answers
32
views
Using node Modules from binding in Next.js
I would like to access a Firebird database in a Next.js (13.1.2) application. Therefore, I am using the node-firebird-libfbclient module: https://github.com/xdenser/node-firebird-libfbclient.
All ...
0
votes
0
answers
33
views
Problem with ForeignKeys in sqlalchemy Python
When I then send the query, neither the BSM_ID nor the employee field are displayed.
I have the following models:
class Bprojpod(db.Model):
__tablename__ = 'BPROJPOD'
ID = db.Column(db.Integer, ...
0
votes
0
answers
28
views
SQLSTATE[HY000] [335544721] Unable to complete network request to host "localhost". (SQL: select * from "ADMIN" where "LOGIN" = admin)? [duplicate]
I want to connect the database using a remote server, but I get an error. I use Laravel and Firebird
enter image description here
'connections' => [
'firebird' => [
'driver'...
-1
votes
0
answers
37
views
Find which table contains a single piece of data via query
I am using a Firebird database. Is there a way to find which table contains a piece of data inside an entire database, for example a numeric sequence 0215682 without knowing the table name?
I know ...
-2
votes
0
answers
25
views
How to summarize the first record associated with an item on a specific day
I have the following tables in Firebird 2.5.
ARTICLES
ID INTEGER PK
NAME VARCHAR (50)
CLASSIFICATION VARCHAR (50)
ARTICLE_IN_OUT
ID INTEGER PK
IDARTICLE INTEGER FK-> ARTICLES
EVENT_DATE ...
-1
votes
0
answers
26
views
Firebird connection ODBC remote when using TCP port
I have a server with Firebird 2.5.0 and I need to read the database on another server over the ODBC connection for use in the PLC project(integration services), so I shared the folder with the.FDB ...
1
vote
1
answer
69
views
Firebird JDBC connection pool validation on Payara server
After a Firebird database crash the connections of the JDBC pool become invalid. (We have to flush the pool manually.) A good concept might be to use jdbc connection pool validation.
Connection ...
0
votes
0
answers
29
views
When creating a foreign key in firebird, the error violation of the FOREIGN KEY restriction "PK_ROLES1" in the "roles" table comes out?
I am trying to create a foreign key in the user_roles table.It has a user_id and a roles_id. I created a foreign key for user_id. And for roles_id it is not possible to create. I work at ibexpert.
An ...
-1
votes
0
answers
47
views
How to make auto-increment in Firebird correctly?
I use Laravel 8, Firebird and IBExpert. I created a generator and a trigger, but when adding data via Laravel, an error comes. I created a generator with a value of 0.
Trigger
as
begin
if ((new.id ...
0
votes
1
answer
111
views
Merge two Firebird databases from Delphi
I'm using the Delphi Sydney version and the database is Firebird 2.5.
I have two databases with identical structures, but it's not 100% the same data.
My strategy is to create two FDConnections and ...
-1
votes
1
answer
47
views
in laravel SQLSTATE[HY000]: General eror: -625 validation error for column id, value "*** null ***" (SQL: insert into "users" ("name",) values (Павел)
I have the following error when registering in laravel.
Laravel version 8
Database: Firebird \
I use the regular form. When registering the form, the following error appears:
SQLSTATE[HY000]: ...
0
votes
1
answer
68
views
Find third last event in table - Incomplete output
As my research into Firebird continues, I've attempted to improve some of my queries. As I use Libreoffice Base, I'm not 100% sure how the data entry code works, but I believe it's something like this:...
0
votes
1
answer
51
views
Why is the error: SQLSTATE[HY000] [335544344] I/O error during "CreateFile (open)" operation for file "base2" in openserver during laravel migration?
I had such a problem. I can't do the migration. The error is:
SQLSTATE[HY000] [335544344] I/O error during "CreateFile (open)"
operation for file "base2".
I am using openserver.
...
2
votes
2
answers
51
views
Left outer join involving three tables
From the 3 tables below I need to find 'John', who has a bike but not a car.
I'm trying to use this syntax
Select <> from TableA A left join TableB B on A.Key = B.Key where B.Key IS null
so in ...
0
votes
1
answer
50
views
TFDBatchMove trying to write NULL into a not Null Firebird DB column
I'm trying to use Delphi 11.2's TFDBatchMove to make a copy of a record in a Firebird database table. The table contains at least one column which is set to "not null" and a default value ...
1
vote
1
answer
128
views
ANTLR Tool version 4.10.1 used for code generation does not match the current runtime version 4.7ANTLR Runtime version 4.10.1
I'm not able to solve the problem with the version of Jaybird's libs package: jaybird-jdk17:3.0.10 where the antlr4-runtime:4.7 is conflicting with the hibernate-core6.1.5Final lib where there is ...
0
votes
1
answer
92
views
The stored password in the db slightly changed through storing process from the original encryption
I use Delphi 10.4 community edition and Firebird embedded database.
The problem: I usually store the login passwords in an 'user' table encrypted. This is the algorithm I usually use (I know it is not ...
0
votes
1
answer
66
views
How to solve a connection refused to localhost error SQLCODE -902?
Everyday for the past two weeks I've been successfully connecting to my Firebird database (2.0.1) with the isql prompt using the following connection string:
SQL> CONNECT "localhost:C:\Users\...
3
votes
1
answer
92
views
Rust Strings and C variadic functions
I need pass a vector of Rust string to a C variadic function. But I can't figure out what is the expected(CString, [u8]..) format.
References:
API reference: isc_event_block
My extern C declaration: ...
3
votes
1
answer
52
views
Is Firebird database file compatible to Firebird Embedded database
Is it possible to open a Firebird database file also with a Firebird Embedded of the same Firebird version? Sure, I am aware I can't keep the same file open via FB Embedded and FB at the same time. ...
0
votes
0
answers
53
views
Avoid deadlock on Firebird
I would like to avoid DeadLock issue in code. I read the way is to use FOR UPDATE WITH LOCK also FbTransactionBehavior.Wait. But my second transaction, despite it is waiting for the first one to ...
1
vote
0
answers
48
views
Connect to Firebird DB via ODBC in R
I am trying to connect to Firebird DB via ODBC. I have R Studio Server installed on a Linux virtual machine. I use dbConnect. This connection works fine on my local machine. However, on the server I ...
0
votes
1
answer
40
views
Python fdb firebirdsql.OperationalError: conversion error from string "?"
I use the following bit to make an sql statement using the key:values in the dict
record_number = 627
temp_dict = {
"FOO": 752,
"BAR": "test&...
0
votes
1
answer
267
views
Unable to resolve name [org.hibernate.dialect.FirebirdDialect]
I'm trying to connect my Firebird database in Spring, but I'm not succeeding. This was the most exact setting in application.properties.
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url:jdbc:...
0
votes
1
answer
62
views
Firebird connection using Spring Boot
How to create a Firebird connection using Spring Boot to make views in SQL using the Firebird database? I have no idea how to build this.
try {
Class.forName("org.firebirdsql.jdbc.FBDriver&...
0
votes
1
answer
72
views
java.lang.ClassNotFoundException: org.firebirdsql.jdbc.FBDriver
I am not able to access the Firebird configuration string, and it works perfectly in MySQL.
package testej;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
...
0
votes
1
answer
106
views
How to open firebird .fdb file in VS Code?
I want to see and check .fdb file. And I am using VS Code to open it. I installed "DB Explorer For Firebird Databases" for this and file opened. However, the opened file was corrupt. How can ...
0
votes
0
answers
40
views
firebird trigger +add value
I'm using firebird 2.5. I want to create a trigger. I want it to add the new value on top of the existing value. I tried something but it didn't work. Can you help me?
If we think that old.MINIMUM = 5 ...
-1
votes
1
answer
92
views
Error "Token unknown - line 4, column 2; SET" creating trigger with variables
I want to create a trigger, but I'm getting an error.
I have 2 tables STOK and STOK_HAREKET:
STOK = (ID,URUN,FIYAT,MINIMUM,MAXIMUM)\
STOK_HAREKET = (STOK_ID,FİYAT,GIRIS,CIKIS)\
I want to build a ...
1
vote
1
answer
61
views
How to update or replace nth position character in Firebird SQL query for the specific column
I would like to update or replace nth position character in Firebird SQL query for the specific column, because STUFF is not working in Firebird SQL.
UPDATE SYSTEM a
SET
a.CONFIG = STUFF('FFFFF02FTF',...
0
votes
0
answers
63
views
I want to insert data in txt format file into sql database
I have a file named queryservices.txt. The data in it ";" divided with, can i write directly to sql database
C:\queryservices.txt
file content;
;STATE;4 RUNNING
(sorry i'm trying to learn ...
1
vote
1
answer
79
views
"Unexpected end of command - line 1, column 8" in JetBrains DataGrip trying to connect to Firebird
I'm trying to connect to a Firebird database hosted in a Docker from the DataGrip client, but this error appears:
WARNING: No connection character set specified (property lc_ctype, encoding, charSet ...
0
votes
1
answer
90
views
ODBC access to Sparx Enterprise Architect Firebird file
Using the newest Enterprise Architect (EA16) gives the ability to store models in a Firebird database file with extension feap.
Installing EA16 on Win10 also installs an ODBC driver, named EA Firebird ...