AS DEFAULT Option - Analytics Database - Teradata Vantage

SQL Data Control Language

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
2023-07-11
dita:mapPath
sgu1628111251052.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dvv1472243528022
lifecycle
latest
Product Category
Teradata Vantage™

A request that includes the AS DEFAULT option has no effect on the logon access granted to or revoked from specific user names.

The following rules apply to the AS DEFAULT option:

Statement Privileges Assumed
REVOKE LOGON The user cannot access the applicable client even if that client has an assigned default of GRANT.
GRANT LOGON The user can always access the applicable client even if that client has an assigned default of REVOKE.

Note in the following examples that these two requests do not have the same semantics:

REVOKE LOGON ON ALL AS DEFAULT;

REVOKE LOGON ON ALL FROM "DEFAULT";

The first request revokes logon privileges on any source through which a logon is attempted, including the Vantage console, without residual conditions. Note that the string AS DEFAULT in this request is a keyword phrase and does not identify a user.

In the second request, Vantage treats “DEFAULT” as a string literal that identifies a user, not as a keyword, and the request revokes logon privileges on all logon sources for the user named DEFAULT. Because DEFAULT is a dummy user name and cannot log on to Vantage, the second request, though syntactically valid, essentially has no effect.