runing a select query on SQL Server 2008, sys.indexes gives me information on the index define for a database .
There 2 fields is_unique and is_unique_constraint. I dont understand the difference b/w them .
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hopefully, this simple demo will make things clearer for you. The index on table X will have both values set, while the index on table Y will have only is_unique set.