TableExists / ViewExists / ColumnExists / IndexExists / ProcedureExists / FunctionExists / DatabaseExists

Class: TMMConnection

function TableExists    (const ATableName: string): Boolean;
function ViewExists     (const AViewName: string): Boolean;
function ColumnExists   (const ATableName, AColumnName: string): Boolean;
function IndexExists    (const ATableName, AIndexName: string): Boolean;
function ProcedureExists(const AProcName: string): Boolean;
function FunctionExists (const AFuncName: string): Boolean;
function DatabaseExists (const ADatabaseName: string): Boolean;

Each returns True when the named object exists on the connected server.
Timeout: HTTP_TIMEOUT_DEFAULT (30 s, fixed; not overridden by TimeoutMs).

On case-sensitive servers (LowerCaseTableNames = 0), TableExists, ViewExists, and DatabaseExists use BINARY comparison; all others are always case-insensitive per MySQL/MariaDB rules.

See Also

(C) 2026 Easygate, Lda