DEFAULT DATABASE = database_name - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Name of the default database established each time a user with this profile logs onto the Vantage.

database_name should be an existing database. The system returns an error when a user with this profile tries to create or reference an object within a nonexistent database.

If the default database is NULL or is not defined in the profile assigned to a user, Vantage uses the setting defined for the individual user. If a default database is not specified for the profile or user, the system uses the username as the default database.

A user can also use SET SESSION DATABASE to specify an alternate default database.