900 byte index size limit in character length

前端 未结 3 1970
灰色年华
灰色年华 2020-12-02 19:55

What is the total character limit for a 900 byte index limit that SQL Server 2012 has. I created a column that has varchar(2000), but I think that it exceeding

3条回答
  •  一个人的身影
    2020-12-02 20:41

    On a related note, another option you can try, to get an index on a wide column, is outlined at http://www.brentozar.com/archive/2013/05/indexing-wide-keys-in-sql-server/ where a hash column is added to the table then indexed and used in your queries.

提交回复
热议问题