I have an nvarchar column of size 2000. Sometimes when I am inserting, it's failing with the error:
System.Data.SqlClient.SqlException: Operation failed. The index entry of length 1146 bytes for the index 'NonClusteredIndex-20161206-202443' exceeds the maximum length of 900 bytes.
But I don't know what to do. This table has 45m records so it has to have an index.
Any ideas?