I am getting below error. How to fix it? Why am I getting this error?
Message operation failed. The index entry of length 1526 bytes for the index ix_Emp_no_1 exceeds the maximum length of 900 bytes.
Maximum Bytes per index key
Result and meaning:
Note : sometimes the SSMS designer does not let you create index larger than 900 bytes (till 1700 bytes) but it is officially supported. you just need to generate the script and run it yourself.
source : https://docs.microsoft.com/en-us/sql/sql-server/maximum-capacity-specifications-for-sql-server?view=sql-server-2017
I have never seen this, but I found this article that may help you deal with your situation. https://blogs.msdn.microsoft.com/bartd/2011/01/06/living-with-sqls-900-byte-index-key-length-limit/
It sounds like you have a key that is over 900 bytes, a large text field maybe. So you need to find a different way to identify that row. Try to index a different column and include the problem column.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With