dbo.fSQLTables
The function returns as a result set the list of table, catalog, or schema names, and table types, stored in a database.
Syntax
dbo.fSQLTables (<'database_qualifier' | null>, <'table_name' | null>, <['type' | null>)
Arguments
Returned Result Set
Example
This example returns a list of the user tables and system tables in the default DEMODATA sample database.
SELECT * FROM dbo.fSQLTables ('Demodata', null, null)
 
Result Set (abbreviated for space considerations):
TABLE_NAME TABLE_TYPE
============= ==============
X$File SYSTEM TABLE
X$Field SYSTEM TABLE
X$Index SYSTEM TABLE
X$View SYSTEM TABLE
X$Proc SYSTEM TABLE
X$Relate SYSTEM TABLE
X$Trigger SYSTEM TABLE
X$Attrib SYSTEM TABLE
X$Occurs SYSTEM TABLE
X$Variant SYSTEM TABLE
Billing TABLE
Class TABLE
Course TABLE
Dept TABLE
Enrolls TABLE
Faculty TABLE
Person TABLE
Room TABLE
Student TABLE
Tuition TABLE
X$User SYSTEM TABLE
X$Rights SYSTEM TABLE
 
22 rows were affected.