null date values with parametred query

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
axelv

null date values with parametred query

Post by axelv » Wed 22 Jun 2005 16:30

when I used 'MyQuery.Params[x].Clear' for inserting some empty dates in a column database i have an error message so i am forced to use the following syntax : MyQuery.Params[x].AsDate := 0. Is it normal ?

and also I can't use the syntax MyQuery.Params[x].AsDateTime to insert some date values in a table


Do I use the good syntax for doing these actions ?

Thank you for your time !

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 23 Jun 2005 10:10

Please submit the create table script.

Do you use DbxSda or MyDAC?

axelv

Post by axelv » Tue 28 Jun 2005 15:51

that's ok i'll find the solution this was because i didn't initialize params[j].DataType

Post Reply