Any SQL/T-SQL command inside MsSQL Server 2000 can show the description of {all table columns or specified table columns} of specified table inside specified database?
can you teach me how to do and any example(s)?Try checking out the INFORMATION_SCHEMA.COLUMNS view:
SELECT
*
FROM
INFORMATION_SCHEMA.COLUMNS
WHERE
TABLE_CATALOG = 'myDatabase' AND
TABLE_NAME = 'myTable'
Terri|||You can also use the following:
exec sp_columns 'table_name'
This will return the list of columns for the table you specified.
没有评论:
发表评论