Is it possible to create a primary key or unique index on an NVARCHAR(4000) column used to hold URLs? There appears to be a 900 byte limitation on unique indexes in SQL 2008.
Share
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.
It is better to create a prefixed index on, say, first
50characters for fast lookups and aUNIQUEindex on theMD5hash (or another hash which is unique enough).