MS SQL 2008 (R2) new data types
Posted: Thu 19 Jul 2012 12:01
Hi, I have problems with new data types for MS SQL Server 2008 (R2):
DATE, TIME, DATETIME2
When I use UniQuery I get this:
A = DATE field
B = TIME(0) field
C = DATETIME2(0) field
UniQuery.FieldByName("A").DataType = ftWideString // correct is = ftDate
UniQuery.FieldByName("B").DataType = ftWideString // correct is = ftTime
UniQuery.FieldByName("C").DataType = ftWideString // correct is = ftDateTime
Thanks, Roman
DATE, TIME, DATETIME2
When I use UniQuery I get this:
A = DATE field
B = TIME(0) field
C = DATETIME2(0) field
UniQuery.FieldByName("A").DataType = ftWideString // correct is = ftDate
UniQuery.FieldByName("B").DataType = ftWideString // correct is = ftTime
UniQuery.FieldByName("C").DataType = ftWideString // correct is = ftDateTime
Thanks, Roman