IB SOCORRO - IBCLIENTDATASET

Delphi

14/04/2003

Olá pessoal...
Estou usando os componentes da palete InterBase e uso o IbClientDataSet e estou com dois problemas que gostaria que vcs da lista me ajudasse:

1º) cds.Close;
cds.CommandText := ´UPDATE ADMEMPRESA SET WHERE NM_ADMEMPRESA= ´+QuotedStr(´TESTE´)+´ WHERE CD_ADMEMPRESA=1´;
cds.Execute;
<ERRO>
Project Project1.exe raised exceptino class EIBClientError with message ´Empty SQL Statement´.
Process stopped. Use Step or Run to continue.

Pq? Como solucioná-lo?

2º) cds.Close;
cds.CommandText := ´SELECT * FROM ADMEMPRESA WHERE CD_ADMEMPRESA=:PCDEMP´;
cds.Params.ParseSQL(cds.CommandText,true);
cds.Params.ParamByName(´PCDEMP´).asInteger := 1;
cds.Active := true;
<ERRO>
Project Project1.exe raised exceptino class EIBClientError with message ´SQL Parse Error:
Parameter name expected´. Process stopped. Use Step or Run to continue.

Pq? Como solucioná-lo?

já agradeço

Carlos Giani


Cgiani

Cgiani

Curtidas 0
POSTAR