firebird

Firebird connection in C#

不羁的心 提交于 2019-12-24 06:44:27
问题 i have problem with connection.. I can connect without problems to my database, when this database is downloaded on my computer: viewdataConnection.ConnectionString = "User ID=sysdba;Password=masterkey;Database=localhost:F:\\machine.FDB;DataSource=localhost;Charset=NONE;" everything is working fine. But problems starts when i try to connect to this base in lan network: viewdataConnection.ConnectionString = "User ID=sysdba;Password=masterkey;Database=10.48.14.51:d:\\backup\\machine.fdb;

Access a 32-bit Firebird database from a 64-bit app via ODBC

戏子无情 提交于 2019-12-24 05:11:11
问题 I'm running Win7 64-bit and Firebird 2.5.2. Is it possible to access a 32-bit Firebird database via ODBC from a 64-bit C++ application? My initial thought was that I could just install the 64-bit Firebird ODBC driver and it would work. Sure enough, after installing it the 64-bit ODBC control panel app shows the Firebird driver, but the connection fails when trying to point it to an .fdb file created with 32-bit Firebird. I'm picking the client library from the 64-bit firebird install as well

How to configure a Firebird Database to run in memory

十年热恋 提交于 2019-12-24 04:00:48
问题 I'm running a software called Fishbowl inventory and it is running on a firebird database (Windows server 2003) at this time the fishbowl software is running extremely slow when more then one user accesses the software. I'm thinking I maybe able to speed up the application by forcing the database to run "In Memory". However I can not find documentation on how to do this. Any help would be greatly appreciated. Thank you in advance. Robert 回答1: Firebird does not have memory tables - they may or

Firebird SQL challenge - return one row that has the data when select returned two rows

痞子三分冷 提交于 2019-12-24 01:33:08
问题 I have a quite unique need to make select always return one row My SQL: select * from table1 Where (table1.pk = :p1) or (table1.fk1 = :p1) The above SQL always has two cases for return: 1- my Select return two records: The only different is one of the records has data while the other has only the ID filled with data while the rest of its fields are null. I need in this case to return only the one that has data in other fields. 2- my Select return one record In this case the record returned

Using UUID PK or FK in Firebird with Jooq

…衆ロ難τιáo~ 提交于 2019-12-24 00:03:59
问题 I have a table in Firebird with a PK column CREATE TABLE TEST ( ID CHAR(16) CHARACTER SET OCTETS NOT NULL, CONSTRAINT PK_TEST PRIMARY KEY (ID) ); OCTETS encoding are treated as bytes. I create a converter public class UUIDConverter implements Converter<byte[], UUID>{ @Override public Class<byte[]> fromType() { return byte[].class; } @Override public Class<UUID> toType() { return UUID.class; } @Override public UUID from(byte[] bytes) { if (bytes == null) return null; ByteBuffer bb = ByteBuffer

“The location of Firebird Client Library could not be determined.”

左心房为你撑大大i 提交于 2019-12-23 22:02:14
问题 I encountered a similar problem as dicussed in here: Firebird embedded installation issue: library could not be determined I'm running a python(3.5.2) script via ubuntu (16.04.4 LTS) which is connected to a firebird database. For installing firebird I followed the instructions provided in here: https://firebirdsql.org/manual/ubusetup.html Now, when I run the python code the following error is displayed: Soft limit starts as :-1 Soft limit changed to :1024 Traceback (most recent call last):

Error message “Incorrect values within SQLDA structure” with Firebird and Delphi 2009

梦想与她 提交于 2019-12-23 21:25:47
问题 I'm strugling with error message "Incorrect values within SQLDA structure" when I'm trying to update blob field within Firebird 2.1 database from Delphi 2009 DBX application. However I get the error message when I'm trying to execute TSQLQuery with following SQL: "update MYTABLE set FIELD1= :data where id = :id" The relevant delphi code is: MyQuery.ParamByName('id').AsInteger := id; MyQuery.ParamByName('data').LoadFromFile(filename, ftBlob); MyQuery.ExecSQL(); Where should I be looking? This

Firebird to MySQL query migration - Select Inner Join Subquery

≯℡__Kan透↙ 提交于 2019-12-23 20:34:31
问题 I have a query that worked in our Firebird SQL data module. We migrated to MySQL and all my queries work no problem except for this one. Please help me fix this. I get an error: Failed to Execute. Unknown column 'part.id' in 'on clause' My Firebird query: SELECT vendor.name AS "Vendor Name", Cast(Cast(vendorparts.lastdate AS date) AS CHAR(10)) AS "Last Date", CASE product.price WHEN '0' THEN 'CONFIRM' WHEN NULL THEN 'CONFIRM' ELSE Round(product.price, 2) end AS "D-Price", Cast(vendorparts

Firebird, decrypt stored procedure?

偶尔善良 提交于 2019-12-23 20:24:45
问题 I got myself into a place where I need to port some functionality from a legacy Firebird database into MSSQL. The table schema and data was ok, all was enumerable and selectable for sysdba, however, the application layer is proving to be a pain. The database has some 1000+ procedures and I would like to to move them over with some review rather than rebuilding the whole DAL. The problem is (you guessed) that they all appear to be encrypted somehow. When I ask to alter it to generate a script

SQL Force show decimal values

元气小坏坏 提交于 2019-12-23 19:53:39
问题 I'm using a Firebird database and am trying the following sql but each time it returns 0, instead of 0.61538 (etc). SELECT (COUNT(myfield)/26) totalcount FROM mytable Now when I remove the /26, the totalcount returns 16 as it should. But when I add the divided by 26 back in, the result shows as 0, but it should show as the full decimal value of 0.615384... Does anyone know why it's not returning the full value? I've even tried wrapping it in a CAST((count(myfield)/26) as double) totalcount