interbase

Why does a commit trigger an access violation?

喜你入骨 提交于 2021-01-07 01:25:44
问题 The following code using the Community version of Delphi and Interbase 2020 running on a Windows 10 machine results in the following error when the Commit is executed. What am I doing wrong? Project FamilyTree.exe raised exception class $C0000005 with message ‘access violation at 0x00481a6f: read of address 0x8b57569f’. procedure writepreamble; var sqltext : string; basicaction : tbasicaction; begin sqltext := 'insert into preambleds(preambleseq,text) values('; sqltext := sqltext+inttostr

数据库学习建议之提高数据库速度的十条建议

放肆的年华 提交于 2020-11-19 07:03:34
很多网站的重要信息都是保存在数据库中的,用户通过提交访问数据库来获取用户信息。如果数据库速度非常的快,有助于节省服务器的资源,在这篇文章中,我收集了十个优化数据库速度的技巧。 0. 小心设计数据库 第一个技巧也许看来理所当然,但事实上大部分数据库的问题都来自于设计不好的数据库结构。 譬如我曾经遇见过将客户端信息和支付信息储存在同一个数据库列中的例子。对于系统和用数据库的开发者来说,这很糟糕。 新建数据库时,应当将信息储存在不同的表里,采用标准的命名方式,并采用主键。 来源: http://www.simple-talk.com/sql/database-administration/ten-common-database-design-mistakes/ 1. 清楚你需要优化的地方 如果你想优化某个查询语句,清楚的知道这个语句的结果是非常有帮助的。采用EXPLAIN语句,你将获得很多有用的信息,下面来看个例子: 1 EXPLAIN SELECT * FROM ref_table,other_table WHERE ref_table.key_column=other_table. column ; 来源: http://dev.mysql.com/doc/refman/5.0/en/using-explain.html 2. 最快的查询语句…是那些你没发送的语句

interbase.interclient.UnlicensedComponentException with the latest interclient.jar IB (v7.5.80)

≡放荡痞女 提交于 2020-02-02 11:14:51
问题 We're trying to open a connection using Java 8 spring application to a legacy interbase database on a remote server stored on some file.gdb. The interclient.jar (interbase jdbc driver) was obtained through their SDK\lib folder extracted from embarcadero interbase developer edition. our application.properties: spring.jpa.database-platform=org.hibernate.dialect.InterbaseDialect spring.datasource.username=sysdba spring.datasource.password=masterkey spring.datasource.driver-class-name=interbase

Generate row numbers in SQL from Interbase

蹲街弑〆低调 提交于 2020-01-16 18:07:35
问题 Is this possible from Interbase ? For example like in this link. 回答1: You can use generator. Create it CREATE GENERATOR g_rowno; And then use like this SELECT GEN_ID(g_rowno, 1), field1, field2, ... FROM your_table But it will work only if there is no concurrent executions of the same query. In Firebird you can use EXECUTE BLOCK construction for processing every row and adding row number before passing it to the client application. 来源: https://stackoverflow.com/questions/3405723/generate-row

Firebird 2.5 VS Interbase 9/XE - which performing faster?

最后都变了- 提交于 2020-01-01 10:16:19
问题 We are on a situation where we must choose between thoose 2 databases. We are currently on Firebird, but sometime it lag because of it stacking too much transaction history or something and backup-restore shall be applied in order to make things better. In my specific case: Database have mostly tables filled with numeric fields. There is mostly inner joins on the queries. Almost the same rate i am inserting, and selecting. ( but on future i am looking about more severe selecting ) There is 3

Union query Access on an Interbase DB

我们两清 提交于 2019-12-24 07:13:31
问题 I am executing queries from Access 2010 on an Interbase database via ODBC (Easysoft) ver.7. Everything works fine except when i come to fire a Union query such as this: SELECT TRIP.TRIPDATE, RESERVATION.BOOKINGREF, RESERVATION.LEADNAME, TRIP.DRIVERID, RESERVATION.STATUS, RESERVATION.DATECANCELLED, TRIP.TRANSPORTTYPEID FROM TRIP INNER JOIN RESERVATION ON TRIP.TRIPID = RESERVATION.ARRIVALTRIPID WHERE (((TRIP.TRIPDATE) Between #2/1/2012# And #2/29/2012#) AND ((TRIP.DRIVERID)=2) AND ((RESERVATION

dbExpress does not read the milliseconds part of TimeStamp fields

天涯浪子 提交于 2019-12-23 02:57:09
问题 Recently some Delphi / InterBase applications display "Record not found or changed by another user" They use the default TSQLQuery/TClientDataSet (or TSimpleDataSet) components of dbExpress. We found that in the database table, a field was stored with milliseconds by a non-dbExpress application. It looks like dbExpress did not read the milliseconds from DB, and use that truncated value in the 'where' condition of the update table SQL statement, so there was no matching record to be updated.

Compiling InterBase support in Qt

徘徊边缘 提交于 2019-12-22 01:19:42
问题 I have followed the instructions on http://doc.qt.nokia.com/stable/sql-driver.html#qibase for compiling Interbase support into Qt, and made sure all of my libraries are in the right place. qmake runs successfully, but when I run nmake, I get a series of undefined reference errors in qsql_ibase.cpp. If I open up the .pro in Qt Creator and hover over one of the functions that is throwing the undefined reference errors and follow the symbol (F2), it takes me to the ibase.h file where it is

Best way to connect to Interbase 7.1 using .NET C#

我是研究僧i 提交于 2019-12-19 07:54:46
问题 Could someone please explain the best way to connect to an Interbase 7.1 database using .NET/C#? The application will be installed on many end user computers so the less "add-ons" that I will have to package with my application the better. 回答1: CodeGear offers a free ADO.NET 2.0 driver for registered users of InterBase here: http://cc.embarcadero.com/item/25497 Note that "registered users of InterBase" includes the free InterBase 2007 Developers Edition. The download says that it's for 2007,

Which version of Interbase or Firebird was a database created under?

人走茶凉 提交于 2019-12-19 03:11:30
问题 I have a file with an extension .ib . I am guessing it is either an Interbase or a Firebird file, but I am having trouble working out exactly which. Furthermore, it isn't clear exactly which version of Interbase (or Firebird) was used to create the file. What I have found so far: I have tried various different software to read this file (FlameRobin, Firebird's isql.exe and also the latest version of Interbase) and the error messages I get tell me the ODS ("On Disk Structure") is version 9.