Change Your DSN Configuration - ODBC Driver for Teradata

ODBC Driver for Teradata User Guide

Product
ODBC Driver for Teradata
Release Number
16.10
Published
May 2017
Language
English (United States)
Last Update
2018-07-11
dita:mapPath
smj1488824663219.ditamap
dita:ditavalPath
Audience_PDF_product_legacy_odbc_include.ditaval
dita:id
B035-2526
lifecycle
previous
Product Category
Teradata Tools and Utilities

You can call the SQLDriverConnect or the SQLBrowseConnect API function, and use the new DATETIMEFORMAT = XYZ option. The DateTimeFormat is only valid for the duration of the new session. You can also use one of the following SQL statements to permanently set it:

SET SESSION DATEFORM = INTEGERDATE
SET SESSION DATEFORM = ANSIDATE

The DateTimeFormat is only valid for the duration of the session. In addition, the SET SESSION DATEFORM SQL statement must not be included in a multi-statement request. Finally, this method only sets the DATE format. The TIME and TIMESTAMP formats still come from the DSN options.