Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Conexión con bases de datos (https://www.clubdelphi.com/foros/forumdisplay.php?f=2)
-   -   Error: "SQLConnection: there is no active transaction" (https://www.clubdelphi.com/foros/showthread.php?t=33050)

jmlifi 26-06-2006 15:16:14

Error: "SQLConnection: there is no active transaction"
 
trabajo con conexion DBExpress bajo Firebird.

TSQLConnection=>TSQLQuery=>TDataSetProvider=>TClientDataSet

Cuando realizo:
Código Delphi [-]
ClientdatasetA.open;

me da el error.

¿A qué se debe?

waltergomez 26-06-2006 16:49:17

Que sentencia tienen el query ?

Sudamericano 26-06-2006 18:02:22

ClientdatasetA.open;el ClientdatasetA debe estar relacionado a :1. IbDataBase 2. IbTransactionle falta el segundo

jmlifi 26-06-2006 18:11:23

SQlQuery:
Código Delphi [-]
with tblPzFact,Sql do begin
    Add('select n_fact, nRectif, pzfact.ref_n, pedido, qp, precio, importe, orden,');
    Add('piezas.ref_c,piezas.c_vr,piezas.ref_c||"    "||piezas.c_vr refversion');
    Add('from ' + Principal.FichPzFact + ' pzFact');
    Add('inner join piezas on pzfact.ref_n=piezas.ref_n');
    Add('where pzFact.n_fact= :n_fact');
    ParamByName('N_Fact').AsInteger := NumFact;
    PzFact.Open;
  end;

SQLConnection=TSQLConnectionA

DataSetProvider:
dataset=SQLQuery

ClientDataset:
prProviderName=DataSetProvider


La franja horaria es GMT +2. Ahora son las 16:31:35.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi