I use Delphi 2010 and SDAC 4.80.0.57.
I use the same program with SQL Server 2005 and SQl Server 2008.
When i read a Date Time Field with
SQLQuery.FieldByName('DataIpoteca').AsDateTime
the Sql Server 2008 return a Convert Error with error
"2010-12-01" is not a valid date e time
the field dataIpoteca is SmallDateTime in SQL
in the SQL server 2005 the function running correct.
it's possible to change the format date character a the SDAC level reading the SQL server version ???
Exists other way to solve the problem ??
SQL Server 2008
-
hmelihkara
- Posts: 21
- Joined: Fri 09 Nov 2007 23:29