17.10 - Example: Using SessionInfoV - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

The following SELECT statement displays information on all current session.

SELECT UserName, SessionNo, DefaultDatabase, LogonSource
       FROM DBC.SessionInfoV;

Result:

UserName  SessionNo DefaultDatabase LogonSource
--------- --------- --------------- ----------------------------
DBC       1,005     DBC             <TCP/IP> EB9F 141.206.1.84