SQL Server case insensitive collation

前端 未结 5 1704
忘了有多久
忘了有多久 2021-02-07 22:29

What are the benefits/drawbacks of using a case insensitive collation in SQL Server (in terms of query performance)?

I have a database that is currently using a case-ins

5条回答
  •  温柔的废话
    2021-02-07 23:00

    I would say the biggest drawback to changing to a case sensitive collation in a production database would be that many, if not most, of your queries would fail because they are currently designed to ignore case.

    I've not tried to change collation on an existing datbase, but I suspect it could be quite time consuming to do as well. You probably will have to lock your users out completely while the process happens too. Do not try this unless you have thoroughly tested on dev.

提交回复
热议问题