dbexpress

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.

How to get the millisecond value from a Timestamp field in firebird with Delphi 2007

∥☆過路亽.° 提交于 2019-12-22 06:09:22
问题 I have a Firebird database (running on server version 2.1.3) and am connecting to it with Delphi 2007 using the DBExpress objects (using the Interbase driver) One of my tables in the database looks something like this CREATE TABLE MYTABLE ( MYDATE Timestamp NOT NULL, MYINDEX Integer NOT NULL, ... Snip ... PRIMARY KEY (MYDATE ,MYINDEX) ); I can add to the table OK, and in Flame Robin it shows the timestamp field as having a millisecond value. But when I do a select all ( select * from MYTABLE

How to execute a SQL script using dbExpress?

回眸只為那壹抹淺笑 提交于 2019-12-22 00:10:31
问题 I'm migrating an old Delphi application (using ZeosDB) to Delphi XE2. I want to use dbExpress as a ZeosDB replacement for database access to Firebird 2.5 or MS-SQL. There are a lot of sql scripts for creating tables, view and stored procedures I need to run. The Firebird script commands are seperated with ^, MS-SQL script commands with "GO". How can I run these scripts on the database using a dbexpress connection? ZeosDB provides a TZSqlProcessor, but I can't find any equivalent component for

Where can I find free open source dbexpress driver for mysql

假装没事ソ 提交于 2019-12-21 23:21:33
问题 I need a dbx driver for mysql. It should be free. Open source is appreciated. (delphi 7+ and mysql 5+) 回答1: check this out DbExpress drivers for MySQL V5.0 The Borland-supplied dbExpress drivers for MySQL prior to Delphi 2007 only work up to version V4.0 of MySQL, even though version V5.0 is becoming increasingly popular, and V5.1 is now in beta. The Just Software Solutions dbxOpenMySQL5 drivers provide a drop-in replacement for the vast majority of cases, allowing easy transition to the

dbExpress driver for Microsoft Access

試著忘記壹切 提交于 2019-12-19 21:26:34
问题 being a dbExpress newbie I wonder if there is a dbExpress driver for Microsoft Access? 回答1: I think the only way to connect to Access is by using ADO. (TADOConnection). 回答2: I have had good results using the open source dbxoodbc driver for dbExpress. The download has several demo projects that use access databases, so you should be able to get up and running in no time. You can find it at http://sourceforge.net/projects/open-dbexpress/ I have only tried it with older versions of access, so I

How to use nested transaction in Delphi dbExpress component with MySQL

ε祈祈猫儿з 提交于 2019-12-13 04:22:40
问题 I'm trying to do a nested transaction using dbExpress in Delphi XE3 that is connected to MySQL 5.6.13. Here is my example code to do a Nested transaction: ... dbxTransaction := _connection.BeginTransaction(TDBXIsolations.ReadCommitted); // just to check if nested is suported supportsNestedBol := dbxTransaction.Connection.DatabaseMetaData.SupportsNestedTransactions; try _sqlQuery.Close; _sqlQuery.SQL.Clear; _sqlQuery.SQL.Add('INSERT INTO test(cod, name) VALUES(:cod, :name)'); _sqlQuery

dbExpress/No key specified

帅比萌擦擦* 提交于 2019-12-12 10:47:10
问题 I am working on a database program, using the dbExpress components (Delphi 7). The data is retrieved from the database via the following components: TSQLDataSet -> TDataSetProvider -> TClientDataSet -> TDatasource -> TDBEdit. Until now, the form has worked correctly. The query in the TSQLDataset is select id, name, byteken, timeflag from scales where id = :p1 I added a large (2048) varchar field to the database table; when I add this field to the above query (and connect either a TDBMemo or a

How to connect to Oracle 10g from remote client?

*爱你&永不变心* 提交于 2019-12-12 03:57:02
问题 Using the standard Delphi dbexpress dbexpora.dll + oci.dll (10g) (the oracle instantclient is installed). When directly on the Oracle Database box we can run dbexpress apps just fine. The local dbxconnections.ini alias used in that case simply specifies our DB service name ORCL as the "database" parameter. We are trying to connect to this same database from client machines and receiving a series of errors. Naturally, we are trying all manner of strings in the database parameter. Using a

delphi 2010 and dbexpress firebird driver

半腔热情 提交于 2019-12-12 03:41:40
问题 I am getting to know the dbexpress firebird driver from Chau Chee-Yang (http://sites.google.com/site/dbxfirebird/) I find it hard to install because there is very little information, I succeded making a connection, but several questions arise: When using the data explorer and I want to connect to the database sends me the following error: --------------------------- Database Explorer --------------------------- The located assembly's manifest definition does not match the assembly reference.

DBExpress and mysql last insert id

南笙酒味 提交于 2019-12-12 02:46:55
问题 There are several posts about how to get last_insert_id from MySQL and related issues. I found this one post related to DBExpress: delphi dxExpress MySQL: invalid LAST_INSERT_ID value However, following that post don't help me using the following code to insert a note into a notes table. TSQLQuery* tq = new TSQLQuery(NULL); tq->SQLConnection = atdbDM->SQLConnection1; stringstream q; q <<"INSERT INTO note (created_by, note) VALUES ("<<1234<<", \'<none>\');"; q << "SELECT LAST_INSERT_ID() AS