In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-10-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The collation of the database is good enough to be installed by default. For example, in a simplified Chinese environment, when installing SQL Server, the default is Chinese_PRC_CI_AS, and in English, it is SQL_Latin1_General_CP1_CI_AS. In most data cases, the default option is already satisfied with our needs, but if we want to support multiple languages, we can only choose SQL_Latin1_General_CP1_CI_AS that supports unicode encoding, otherwise there will be garbled, and the application query / update data needs to be preceded by N as the symbol of the unicode character. I think many people don't pay much attention to this problem.
One example is the inconsistency between instance-level and database-level collation, which can also cause unexpected problems. For example, tempdb, which is shared by all user databases, may have problems using temporary tables or table variables if the collation of the user database is different from tempdb.
Another example is as follows (SQL Server 2008R2). The collation of the database mapped by the login name test1 is inconsistent with the collation of the instance. Open the property of the login name, the security object, and report a 468 error.
Figure-1: attribute of login name
Figure-2: 468 error reported
So it's best to use an example of database and instance collation. In database planning, it is recommended to use all SQL_Latin1_General_CP1_CI_AS, although the application needs to add N, but for future expansion, it is worth doing so.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.