SQL Server case insensitive collation

前端 未结 5 1700
忘了有多久
忘了有多久 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:12

    If you change the database collation but not the server collation (and they then don't match as a result), watch out when using temporary tables. Unless otherwise specified in their CREATE statement, they will use the server's default collation rather than that of the database which may cause JOINs or other comparisons against your DB's columns (assuming they're also changed to the DB's collation, as alluded to by Damien_The_Unbeliever) to fail.

提交回复
热议问题