firebird

Storing Currency Symbols in a Database Table

早过忘川 提交于 2019-12-04 01:22:16
问题 We are using firebird as our database. How do we go about storing currency symbols in the database. Which character set should we use or what is generally best practice? For example storing "$" or "¥" appears straight forward but more complex symbols do not appear correctly in the database table, i.e. "₡" will not store in the database. What is generally accepted as "best practice" for this kind of thing. EDIT- Let me specify that the language we are using is C#. I suspected that UTF8 would

Not Loading Firebird Extension

好久不见. 提交于 2019-12-03 16:44:57
I'm trying to use the Firebird extension in PHP. I've got the extension files ( php_pdo_firebird.dll, php_interbase.dll ) in my ext folder. I'm adding them in my php.ini file like so ... [PHP_PDO_FIREBIRD] extension=php_pdo_firebird.dll [PHP_INTERBASE] extension=php_interbase.dll ... No errors are being thrown saying the extensions could not be loaded and yet whenever I print my phpinfo I don't see either of them listed. What am I missing here? For what it's worth, I'm running PHP version 5.3.14 TS using Apache 2.2 on Windows 7. Edit: It seems some errors are being logged, it's just that my

What is the most efficient way to store measurements with a variable number of fields in a database?

依然范特西╮ 提交于 2019-12-03 16:34:41
We have a data collection system that collects measurements from environmental sensors that measure velocity of water flowing through a river or channel. Each measurement generates a fixed number of values (e.g. Date, Time, Temperature, Pressure etc.) plus a list of velocity values. Originally the sensors supplied three velocity values so I simply stored each value in it's own column of a single table in a FireBird database. Later on sensor were introduced that could output up to nine velocity values so I simple added six more columns. Even though most sensors use less than 9 values, I

List all unused domains for a Firebird database

喜你入骨 提交于 2019-12-03 15:07:49
Is there a quick way to list all Firebird domains defined for a database that are actually not used by any field ? I have a large database with many tables and many domains and it seems that a lot of them are not anymore used, so I guess it's time for a cleanup ! I think this is possible by querying the RDB$... system tables, but I'm unsure how to do this. SELECT f.rdb$field_name FROM rdb$fields f LEFT JOIN rdb$relation_fields rf ON rf.rdb$field_source = f.rdb$field_name WHERE rf.rdb$field_name IS NULL AND COALESCE(f.rdb$system_flag, 0) = 0 来源: https://stackoverflow.com/questions/35432357/list

Firebird x Windows 7 x gds32.dll error

霸气de小男生 提交于 2019-12-03 13:23:37
问题 I have a fdb file (firebird) from a new client (he doesn't know the version). I have tried to use some GUI to access the database, but with no luck. All of them tell that its missing gds32.dll, but I have this one. I have copied this dll to the GUI folder, I have copied the dll to system32 folder and I have copied to syswow64. I am running Windows 7 64 bits and the firebird database is 32 bits. I have tried to install the dll but I can't register it. I have installed WinXP in a virtual

How to input an array parameter of values to Firebird Stored Procedure?

你离开我真会死。 提交于 2019-12-03 12:18:23
I would like to input an array parameter of IDs to Firebird Stored Procedure . :INPUT_LIST_ID = [1, 2, 12, 45, 75, 45] I'm need to execute this SQL command: SELECT * FROM CITY WHERE ID_CITY IN (:INPUT_LIST_ID) Is it possible? Thanks! You could also use something like this: SELECT * FROM CITY WHERE ID_CITY IN (SELECT ID FROM GetIntegerList('1, 2, 12, 45, 75, 45')) You would have to create a new Firebird Procedure called "GetIntegerList" which would look something like this: CREATE OR ALTER PROCEDURE "GETINTEGERLIST"("AINTEGERLIST" VARCHAR(32000)) returns ( ID integer ) as declare variable

Delphi XE, Firebird and UTF8

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm upgrading a D7 program to XE, and under Delphi 7 I had code like this... ParamByName ('Somefield').AsString:=someutf8rawbytestring; Under XE if someutf8rawbytestring contains unicode characters such as Cyrillic script, then they appear as ???? in the DB. I see that someutf8rawbytestring is 8 characters long, for my 4 character string, which is correct. But in the DB there are just four characters. I'm using Firebird 2 through TIBQuery with XE and updating a Varchar field with character type 'NONE'. So what it looks like is that the utf8

How to connect Firebird DB with Qt?

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am really new to Firebird and I want to implement really really easy task in order to understand how I can work with it. Can you please give me a link or a piece of code with a little information about how I can reach Firebird using Qt ? Thank you very much for you all 回答1: The Qt toolkit contains many great SQL drivers and among them is also an FireBird SQL driver. http://doc.qt.io/qt-5/sql-driver.html#qibase-for-borland-interbase To use it on windows/linux you need to recompile the driver Here is one example with Firebird embedded : .

Firebird 3 sysdba password stunning issue

匿名 (未验证) 提交于 2019-12-03 08:51:18
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I migrated from firebird 2.5.x to 3.0 i have changed firebird.conf : WireCrypt = Enabled AuthServer = Legacy_Auth, Srp, Win_Sspi after that here you are what happened: I can connect from Netbeans IDE using SYSDBA masterkey. I can connect from FlameRobin (database admin. tool) using SYSDBA with other password. I can not connect from Wild-Fly server using SYSDBA with that other password. I am really wondering.!! 回答1: I assume you are using Jaybird 2.2.x (or earlier) when connecting from Netbeans and Wildfly. With Firebird 3 a new

How can I get the table description (fields and types) from Firebird with dbExpress

北城以北 提交于 2019-12-03 06:42:31
I have written a tool for displaying database structures using the GetTableNames and GetFieldNames methods of TSQLConnection. How can I get the types of each field name similar to the following list (which is part of the DDL required to build the table)? TABLE: ARTICLES ID INTEGER NOT NULL PRINTED SMALLINT DEFAULT 0 ACADEMIC SMALLINT RELEVANCE SMALLINT SOURCE VARCHAR(64) CHARACTER SET WIN1251 COLLATE WIN1251 NAME VARCHAR(128) CHARACTER SET WIN1251 COLLATE WIN1251 FILENAME VARCHAR(128) CHARACTER SET WIN1251 COLLATE WIN1251 NOTES VARCHAR(2048) CHARACTER SET WIN1251 COLLATE WIN1251 This is