title: SQL Server: The total size of an index or primary key cannot exceed 900 bytes
body: <p>I am trying to put an index on a column that will hold URLs. Since the maximum length of a URL an be over 2000 characters long I set the data type to NVARCHAR(3000). When I did this I got the error  <code>The total size of an index or primary key cannot exceed 900 bytes</code>. Since I may need to search for records by URL i will need an index on my URL Column. Is there a way around this limitation?</p>