I am comparing BDE and DBExpress components and try to execute simple update in TMPTABLE.
When I use BDE TQuery Query.ExecSQL works fine, but if I use DBExpress TSQLDataSet, it freezes in SQLDataSet.ExecSQL.
I use Delphi XE3 in Win7 64b.
Database is Oracle.
BDE Query uses ODBC-connection, but DBExpress SQLDataSet uses Oracle driver.
What is wrong with this?
procedure Test;
var
Query : TQuery; // dbe
SQLDataSet : TSQLDataSet; // dbexpress
begin
Query := TQuery.Create(nil);
Query.DatabaseName := 'DatabaseName';
Query.SQL.Add('update TMPTABLE set STATUS = 1');
Query.ExecSQL; // <-- OK
Query.Free;
SQLDataSet := TSQLDataSet.Create(nil);
SQLDataSet.SQLConnection := SQLConnection;
SQLDataSet.CommandType := ctQuery;
SQLDataSet.CommandText := 'update TMPTABLE set STATUS = 1';
SQLDataSet.ExecSQL; // <-- Freezes here
SQLDataSet.Free;
end;
These are SQLConnection Params:
DriverUnit=Data.DBXOracle
DriverPackageLoader=TDBXDynalinkDriverLoader,DBXCommonDriver170.bpl
DriverAssemblyLoader=Borland.Data.TDBXDynalinkDriverLoader,Borland.Data.DbxCommonDriver,Version=17.0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b
MetaDataPackageLoader=TDBXOracleMetaDataCommandFactory,DbxOracleDriver170.bpl
MetaDataAssemblyLoader=Borland.Data.TDBXOracleMetaDataCommandFactory,Borland.Data.DbxOracleDriver,Version=17.0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b
GetDriverFunc=getSQLDriverORACLE
LibraryName=dbxora.dll
LibraryNameOsx=libsqlora.dylib
VendorLib=oci.dll
VendorLibWin64=oci.dll
VendorLibOsx=libociei.dylib
DataBase=Database Name
User_Name=user
Password=password
MaxBlobSize=-1
LocaleCode=0000
IsolationLevel=ReadCommitted
RowsetSize=20
OSAuthentication=False
MultipleTransactions=False
TrimChar=False
BlobSize=-1
ErrorResourceFile=
OS Authentication=False
Multiple Transaction=False
Trim Char=False
Decimal Separator=.
SQLDataSet.Open
? maybe you have problems with your provider/driver. – kobikT[SQL]DataSet
is not used in conjunction withExecSQL
. try to useTSQLQuery
. I know it's a long-shot becauseTSQLDataSet
should also work... – kobik