Problem with TDateTime and ADO
- From: "Oleg" <oleg@xxxxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 15:48:20 +0200
Hi!
I have some problem when we try to set field of timestamp type in Interbase
database using TAdoQuery component. As result I can see updated field in
database, but a value content only date without time-part. For connection I
use Easysoft IB6 ODBC driver. It's a part of our code:
procedure TForm1.Button1Click(Sender: TObject);
begin
ADOQuery1.SQL.Text :=
'update cheques set chargeddate = :chargeddate where chequeno =
:chequeno';
ADOQuery1.Parameters.ParamByName('chequeno').Value := 12345;
ADOQuery1.Parameters.ParamByName('chargeddate').Value := now;
ADOQuery1.ExecSQL;
end;
Any ideas?
.
- Prev by Date: Re: TADOConnection error - connection string
- Next by Date: Re: TADOConnection error - connection string
- Previous by thread: Test if field in DB exsits
- Next by thread: Connecting to an Access Database in Delphi 2006
- Index(es):