Problem of insert a datetime value from Delphi application

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

Problem of insert a datetime value from Delphi application

Post by foalex » Mon 21 Mar 2005 12:09

I'm with a problem for post a datetime value in my sqlserver database, because the field in a database is a datetime, and in my application too. But in the insert have a error, because the dbexpress don't accept the datetime value with delphi convertion.
Thank's for the help.
Best regards.

[email protected]

Datetime value

Post by [email protected] » Mon 21 Mar 2005 14:02

I found the same problem .....
There I found two ways to resolve it:
1. Change date format for SQL Server
2. Passing DateValue to server as Quoted string in format yyyyMMdd
f.e. '19581207'

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

Re: Problem of insert a datetime value from Delphi application

Post by Ikar » Tue 22 Mar 2005 09:03

foalex wrote:I'm with a problem for post a datetime value in my sqlserver database, because the field in a database is a datetime, and in my application too. But in the insert have a error, because the dbexpress don't accept the datetime value with delphi convertion.
Thank's for the help.
Best regards.
We couldn't reproduce the problem.
Please send us complete small sample to demonstrate it and include script to create server objects.

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

Re: Datetime value

Post by Ikar » Tue 22 Mar 2005 11:51

Do you use DbxSda or SDAC?
[email protected] wrote:I found the same problem .....
There I found two ways to resolve it:
1. Change date format for SQL Server
2. Passing DateValue to server as Quoted string in format yyyyMMdd
f.e. '19581207'

Post Reply