简体   繁体   English

SQL Server不区分大小写

[英]SQL Server case insensitive

http://msdn.microsoft.com/en-us/library/ms179254.aspx http://msdn.microsoft.com/en-us/library/ms179254.aspx

Will this work for all databases or must I manually use on every new database which I will add? 这对所有数据库都适用吗?还是我必须在要添加的每个新数据库上手动使用?

Quote from the link you provided, first line reads: 从您提供的链接中引用,第一行内容为:

The server collation acts as the default collation for all system databases that are installed with the instance of SQL Server, and also any newly created user databases. 服务器排序规则充当与SQL Server实例一起安装的所有系统数据库以及所有新创建的用户数据库的默认排序规则。

That's assuming the databases being created aren't specifying what collation to use. 假设正在创建的数据库未指定要使用的排序规则。

A database is a group of objects (tables, functions, etc), which can be from multiple schemas. 数据库是一组对象(表,函数等),可以来自多个模式。 The instance is the server application running on the host -- you can have more than one SQL Server instance running on a single host. 该实例是在主机上运行的服务器应用程序-您可以在一个主机上运行多个SQL Server实例。 Each could have numerous databases with them. 每个数据库都可以有许多数据库。

During the installation of SQL Server you specify the default collation - which is used on every database you create. 在安装SQL Server的过程中,您指定默认排序规则-在您创建的每个数据库上使用。 If you newly create a database and want to have a new collation - you have to specify it according to this documentation-link or in the properties-menu of the database. 如果您是新创建数据库并希望使用新的排序规则,则必须根据此文档链接或在数据库的属性菜单中进行指定。 If you already have created a database and need to change the collation of existing columns filled with data you need to perform this statement. 如果您已经创建了数据库,并且需要更改填充有数据的现有列的​​排序规则,则需要执行语句。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM