GetTTY

Returns the file or TTY debug for the connection.
function GetTTY(Connection: TSQLConnection): AnsiString;

Parameters:

Connection
The TSQLConnection component that is connected to the server.

Return Value:

A string value containing the file or TTY, or '' (empty string) if none.

Exceptions:

EDatabaseError is raised in case of an error.

Quick Info:

Supported Compilers:D7+
Category:Database Information
Unit: PGEDriverUtils.pas

Example 4.2. 

ShowMessage('The debug file/TTY of this connection is ' + GetTTY(SQLConnection1));