Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Retieving Column Names of Table Valued UDF

28 views
Skip to first unread message

Gridlock

unread,
Jun 7, 2006, 12:29:02 PM6/7/06
to
I can retrieve column names, data types, etc. from Tables or Views from
information.schema.columns, but columns of Table Valued UDF's are not listed
there. How do I retrieve column information for UDF's?

Thanks in advance

SQL Menace

unread,
Jun 7, 2006, 12:38:34 PM6/7/06
to
Take a look at INFORMATION_SCHEMA.ROUTINE_COLUMNS

ROUTINE_COLUMNS
Contains one row for each column returned by the table-valued functions
accessible to the current user in the current database.

The INFORMATION_SCHEMA.ROUTINE_COLUMNS view is based on the sysobjects
and syscolumns system tables.

To retrieve information from this view, specify the fully qualified
name of INFORMATION_SCHEMA view_name.

Denis the SQL Menace
http://sqlservercode.blogspot.com/

Tibor Karaszi

unread,
Jun 7, 2006, 12:37:58 PM6/7/06
to
What version of SQL Server?

2000: syscolumns
2005: sys.columns

Reason for them not being in information schema views is probably that there are no such things as
user defined function in ANSI SQL.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/


"Gridlock" <Grid...@discussions.microsoft.com> wrote in message
news:2E0EF9E2-4557-4D45...@microsoft.com...

Gridlock

unread,
Jun 7, 2006, 12:49:02 PM6/7/06
to
currently 2000, but need to worry about 2005 at some point

Gridlock

unread,
Jun 7, 2006, 12:50:02 PM6/7/06
to
THANK YOU!! That was it!
0 new messages