dbo.fSQLColumns
This function returns the list of column names in a specified table.
Syntax
dbo.fSQLColumns <'database_qualifier' | null>, <'table_name' | null>, <'column_name' | null>)
Arguments
 
Returned Result Set
 
Example
This example returns information for all columns in the Room table in the default Demodata sample database.
SELECT * FROM dbo.fSQLColumns ('Demodata', 'room', null)
Result Set (abbreviated for space considerations):
COLUMN_NAME     DATA_TYPE   LENGTH   ORDINAL_POSITION
==============  =========   ======   ================
Building_Name           1       25                  1
Number                  4        4                  2
Capacity                5        2                  3
Type                    1       20                  4
 
4 rows were affected.