The problem is that MS Query binds "DATE" columns as SQL "TIMESTAMP", while in Teradata these are completely different data types. Under Options, Advanced there is a checkbox to "Use DATE data for TIMESTAMP parameters" which in effect causes the driver to truncate anything passed as TIMESTAMP to just the DATE portion. Provided that you are not acutally using any TIMESTAMP fields, setting this option should work around the issue.
If you also use other query tools that do support separate DATE and TIMESTAMP types, then you won't want this option set. So use a different ODBC DSN for MS Query.
↧