is of a type that is invalid for use as a key column in an index

后端 未结 5 2007
我在风中等你
我在风中等你 2020-11-29 21:57

I have an error at

Column \'key\' in table \'misc_info\' is of a type that is invalid for use as a key column in an index.

where key is a n

5条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 22:32

    The only solution is to use less data in your Unique Index. Your key can be NVARCHAR(450) at most.

    "SQL Server retains the 900-byte limit for the maximum total size of all index key columns."

    Read more at MSDN

提交回复
热议问题