Reputation: 55
In SQL Server 2005, which system table holds the information as to whether a column is nullable or not, whether a index is unique or not asc or dec.
Thanks, Jude
Upvotes: 2
Views: 155
Reputation: 294207
sys.columns.is_nullable
sys.indexes.is_unique
sys.index_columns.is_descending_key
Upvotes: 2
Reputation: 6240
SELECT * FROM INFORMATION_SCHEMA.COLUMNS -- gives column info SELECT * FROM sys.indexes --gives info for indexes
Upvotes: 0