Case sensitivity and database projects

后端 未结 1 2013
Happy的楠姐
Happy的楠姐 2021-02-20 04:25

I created a schema in our SQL Server 2012 database called [Auth]. Then tables and triggers were created as well. Later I was informed that the schema naming standar

1条回答
  •  悲哀的现实
    2021-02-20 05:26

    There is an option in the project settings called "Validate Casing on Identifiers" which according to the documentation shall detect difference in case. However, it only seems to be relevant if you select a case sensitive collation in the Database Settings of your project.

    enter image description here

    Once I selected SQL_Latin1_General_CP1_CS_AS I was able to detect the changes in a schema name and it scripts the DROP/CREATE schema as expected:

    enter image description here

    0 讨论(0)
提交回复
热议问题