sp_tables

Returns a list of objects that can appear in a from clause.

Syntax

sp_tables [table_name] [, table_owner]
 [, table_qualifier] [, table_type]

Parameters

Usage

  • Enclose each table type with single quotation marks and enclose the entire parameter with double quotation marks. Enter table types in uppercase. For example: “‘TABLE’, ‘SYSTEM TABLE', ‘VIEW’, ‘SYNONYM’”

  • This procedure corresponds to the ODBC function SQLTables.