jude
jude

Reputation: 55

not null and is unique constraint

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

Answers (2)

Remus Rusanu
Remus Rusanu

Reputation: 294207

Upvotes: 2

IordanTanev
IordanTanev

Reputation: 6240

SELECT * FROM INFORMATION_SCHEMA.COLUMNS -- gives column info SELECT * FROM sys.indexes --gives info for indexes

Upvotes: 0

Related Questions