SET SESSION DATEFORM Examples | Teradata Vantage - SET SESSION DATEFORM Examples - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
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;