SET SESSION DATEFORM Examples | Teradata Vantage - SET SESSION DATEFORM Examples - Analytics Database - Teradata Vantage

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-05
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

Example: Changing the Session Dateform From ANSIDATE to INTEGERDATE

You need to change the DATEFORM setting for the current session from ANSI session mode to Teradata session mode so you can run a legacy application that does not support ANSI dates. Use the following statement:

     SET SESSION DATEFORM = INTEGERDATE;

Example: Changing the Session Dateform from INTEGERDATE to ANSIDATE

To change the DATEFORM setting back to ANSIDATE, use the following statement:

     SET SESSION DATEFORM = ANSIDATE;