firebird

How to REVOKE ROLE GRANTED BY another user on Firebird 2.5.8?

随声附和 提交于 2019-12-02 03:59:35
I am working with Firebird 2.5.8, ODS Version 11.2, connecting via Firebird ADO.NET v6.6 (in C# using Visual Studio). I have built a database management tool for configuring our tables, as well as performing some basic Firebird user management operations. The database has different roles (MyRoleX and MyRoleY) defined to give/restrict access. User management operations include granting/revoking these roles to different users. When logged into the tool, the connection uses the RDB$ADMIN ROLE and the connected user has been created with the ADMIN ROLE. Lastly, there may be more than one Firebird

PHP firebird insert blob file into the database apache suddenly stop working

你。 提交于 2019-12-02 03:57:45
I'm currently working on inserting image on the firebird database and it's working fine alone, see the code below. $dbh = ibase_connect($host, $user, $pass); $blh = ibase_blob_create($dbh); ibase_blob_add($blh, $data); $blobid = ibase_blob_close($blh); $sql = "INSERT INTO blobtable(blobfield) VALUES (?)"; $sth = ibase_query($dbh, $sql, $blobid); but when I add some data on the insert statement suddenly the apache crash and stops working. See below code when I add new data. $dbh = ibase_connect($host, $user, $pass); $blh = ibase_blob_create($dbh); ibase_blob_add($blh, $data); $blobid = ibase

Parameter in SELECT statement's fields list - error: Data type unknown

瘦欲@ 提交于 2019-12-02 03:15:50
问题 I have a problem with Firebird (embedded) database. I would like to set a parameter values in the select statement. For example: SELECT name, surname, :string AS myText FROM myTable where :string is a parameter. The above code works in SQLite and the result is (when the paramenter is "abcdef"): +------+---------+---------+ |name |surname |myText | +------+---------+---------+ |John |Black |abcdef | +------+---------+---------+ |Thomas|Young |abcdef | +------+---------+---------+ |... |...

Local Firebird db replication/sync to online db

此生再无相见时 提交于 2019-12-02 03:11:10
I am looking for a tip how to synchronize data from a local firebird database into online db? Few comments: On a local machine I use sales software which keeps data on firebird db. There is an internet connection, but I want to avoid direct db access (as the PC after 9pm is being turned off). I would like to create an online app (based on foundation + php + database) in which I will be able to view daily sales and explore past data. In local db, I will need to pull data from several different tables, and I would like to keep them in online/final db as a single table (with fields: #id,

Parameter in SELECT statement's fields list - error: Data type unknown

纵饮孤独 提交于 2019-12-02 02:57:23
I have a problem with Firebird (embedded) database. I would like to set a parameter values in the select statement. For example: SELECT name, surname, :string AS myText FROM myTable where :string is a parameter. The above code works in SQLite and the result is (when the paramenter is "abcdef"): +------+---------+---------+ |name |surname |myText | +------+---------+---------+ |John |Black |abcdef | +------+---------+---------+ |Thomas|Young |abcdef | +------+---------+---------+ |... |... |abcdef | +------+---------+---------+ |nameX |surnameY |abcdef | +------+---------+---------+ When I try

SetThreadLocale for the entire Delphi application

試著忘記壹切 提交于 2019-12-02 02:12:08
问题 My Delphi (XE 10) program uses nonunicode (single byte) legacy Firebird database (character set NONE) and therefore its data (that are read from or saved into database) depends on the windows Locale for the nonunicode programs. Depending on this Windows setting the same database character can be displayed in the program as \u0101 (that is correct) or \u0432 (that is not correct). IBX serves as DB access technology. My program works only for the specificed local for nonunicode programs and

Binary stream '0' does not contain a valid BinaryHeader. Occurs randomly

冷暖自知 提交于 2019-12-02 01:28:14
问题 I'm working on c# windows service that handles firebird database requests. My problem occurs at random moments (sometimes after 5 minutes, sometimes after just 4 calls to database), when I try to deserialize object on client application. It happens though only at specific position (stops at 18th byte in 54 byte array). Rest of the time the function returns a proper result. I'm using this function to serialize single object public byte[] ObjectToByteArray(Object obj) { if (obj == null) return

“Unknown data type” error with Firebird embedded and Entity Framework 6

此生再无相见时 提交于 2019-12-02 01:25:56
问题 I'm using an embedded Firebird database with code first (Entity Framework 6). The first time the application runs, it works fine: the database gets created and the data gets inserted. But every time it runs after that, it throws the following exception: An exception of type 'System.NotSupportedException' occurred in FirebirdSql.Data.FirebirdClient.dll but was not handled in user code Additional information: Unknown data type The project includes the following NuGet packages: EntityFramework

How, and where to install a database driver into an IDE?

大城市里の小女人 提交于 2019-12-02 00:41:52
I want to install a Firebird database driver, and to have it available within the Delphi XE IDE. I want the database driver to be usable on the same basis as other, supplied database drivers (eg Interbase, SQL - from within the Data Explorer in the IDE). I have obtained an appropriate driver. The driver consists of a Delphi project, which compiles to a DLL; and modifications to two .ini configuration files (dbxconnections.ini and dbxdrivers.ini). I assume that the DLL is the actual driver, and I have compiled the project without problem. I have got this far, and this is where I realised that I

Firebird 2.1 - Simple SELECT

做~自己de王妃 提交于 2019-12-01 23:29:27
I would like to union some data, but a simple select example not working. Selecting existing tables work fine... SELECT 1 as foo Message: can't format message 13:896 -- message file C:\xxxx\firebird.msg not found. Dynamic SQL Error. SQL error code = -104. corrupt pool. In MySQL and Postgres is no problem with these simple select.. Thanks for help! Firebird (like many other DBMS) requires a FROM clause. In Oracle you'd use the DUAL table, in Firebird you can use RDB$DATABASE SELECT 1 as foo FROM RDB$DATABASE; As RDB$DATABASE always contains exactly one row, this works the same way as Oracle's