{"id":34925,"date":"2018-06-14T09:57:38","date_gmt":"2018-06-14T16:57:38","guid":{"rendered":"https:\/\/virtual-dba.com\/?p=34925"},"modified":"2021-02-10T18:08:36","modified_gmt":"2021-02-11T01:08:36","slug":"sql-server-collation","status":"publish","type":"post","link":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/","title":{"rendered":"SQL Server Collation"},"content":{"rendered":"<h2>What is Collation?<\/h2>\n<p>Collation is a set of rules dictating how each group of characters within SQL Server is treated. A list of collations and their definitions can be found using the following query.<\/p>\n<pre><code>SELECT name, description\nFROM sys.fn_helpcollations()\nWHERE COLLATIONPROPERTY(name, 'CodePage') = 0;\n<\/code><\/pre>\n<p>There are two types of collations which will appear in the results of the query listed above. These are SQL collations and Windows Collations.<br \/>\nTo further break down collations, they are made up of the following options.<\/p>\n<ul>\n<li><strong>Prefix<\/strong>: This establishes whether or not it is a SQL Server or Windows Collation.<\/li>\n<p><strong>EXAMPLE:<\/strong><br \/>\nOmitted (Windows Collation)<br \/>\nSQL_ (SQL Server Collation)<\/p>\n<li><strong>SortRules:<\/strong>  This establishes the alphabet and language used.<\/li>\n<p><strong>EXAMPLE:<\/strong> &#8216;Latin1_General'(English)<\/p>\n<li><strong>Code Page:<\/strong> Identifies the code page used by the collation. A code page is used to determine the mapping between a character and its byte representation.<\/li>\n<p><strong>EXAMPLE:<\/strong> \u2018CP1251\u2019 (Code page 1251)<\/p>\n<li><strong>Case Sensitivity:<\/strong> This establishes whether it is case sensitive or insensitive.<\/li>\n<p><strong>EXAMPLES:<\/strong><br \/>\n&#8216;CI&#8217; (Case Insensitive; A is the same as a; A=a)<br \/>\n&#8216;CS&#8217; (Case Sensitive; A is not the same as a; A!=a)<\/p>\n<li><strong>Accent Sensitivity:<\/strong> This establishes whether it is accent sensitive or insensitive.<\/li>\n<p><strong>EXAMPLES:<\/strong><br \/>\n&#8216;AI&#8217; (Accent Insensitive; a is the same as \u00e0; a=\u00e0)<br \/>\n&#8216;AS&#8217; (Accent Sensitive; A is not the same as \u00e0; a!=\u00e0 )<\/p>\n<li><strong>KanatypeSensitve:<\/strong> This establishes whether SQL Server considers the kana characters Hiragana and Katakana to be equal characters or not. By default, SQL Server collations have this set to insensitive.<\/li>\n<p><strong>EXAMPLES:<\/strong><br \/>\nOmitted (Kanatype Insensitive)<br \/>\nKS (Kanatype Sensitive)<\/p>\n<li><strong>Width Sensitivity:<\/strong> This establishes whether SQL Server considers single bit characters equal to double bit characters. By default, SQL Server collations have this set to insensitive.<\/li>\n<p><strong>EXAMPLES:<\/strong><br \/>\nOmitted (Width Insensitive;A6 is the same as A6; A6=A6 )<br \/>\nWS (Width Sensitive; A6 is not the same as A6; A6!=A6 )<\/p>\n<li><strong>BIN:<\/strong> This establishes the binary sort order.<\/li>\n<p><strong>EXAMPLES:<\/strong><br \/>\n&#8216;BIN&#8217; (binary sort for Unicode Data) or<br \/>\n&#8216;BIN2&#8217; (binary code point comparison sort for Unicode Data)<\/ul>\n<ul>\nExample: SQL_Latin1_General_CP1_CI_AS<\/p>\n<li><strong>Prefix:<\/strong> SQL_ &#8211; SQL Collation<\/li>\n<li><strong>Sort Rules:<\/strong> Latin1_General \u2013 English<\/li>\n<li><strong>Code Page:<\/strong> CP1  &#8211; Code Page 1252<\/li>\n<li><strong>Case Sensitivity:<\/strong> Insensitive<\/li>\n<li><strong>Accent Sensitivity:<\/strong> Sensitive<\/li>\n<\/ul>\n<ul>\nExample: SQL_Ukrainian_CP1251_CI_AS<\/p>\n<li><strong>Prefix:<\/strong> SQL_ &#8211; SQL Collation<\/li>\n<li><strong>Sort Rules:<\/strong> Ukrainian<\/li>\n<li><strong>Code Page:<\/strong>  Code Page 1251<\/li>\n<li><strong>Case Sensitivity:<\/strong> Insensitive<\/li>\n<li><strong>Accent Sensitivity:<\/strong> Sensitive<\/li>\n<\/ul>\n<ul>\nExample: SQL_Latin1_General_CP437_BIN<\/p>\n<li><strong>Prefix:<\/strong> SQL_ &#8211; SQL Collation<\/li>\n<li><strong>Sort Rules:<\/strong> Latin1_General \u2013 English<\/li>\n<li><strong>Code Page:<\/strong> CP1  &#8211; Code Page 437<\/li>\n<li><strong>BIN:<\/strong> binary sort for Unicode Data<\/li>\n<\/ul>\n<h2>Why is it important?<\/h2>\n<p>The most notable answer to this is language. SQL Server is used by a wide variety of people across the world. It is very important to configure SQL Server to accept commands and characters for the language and alphabet needed.<\/p>\n<p>It is also important to set sensitivity levels at a database level correctly as SQL server will treat certain words as different or the same depending on the setting. If case sensitivity is set, &#8216;Test&#8217; is not the same word as \u2018test\u2019. This will result in them being treated separately. If a table set to be case sensitive is queried for the word &#8216;Test&#8217;, only results with that casing would appear. This would also cause issues in queries if proper formatting isn\u2019t followed. This applies to using accents as well if the query is accent sensitive. The following two queries would not be the same because the table names are capitalized differently.<\/p>\n<p><code>SELECT *  FROM Test<br \/>\nSELECT *  FROM test<br \/>\n<\/code><\/p>\n<p>If the table were called &#8220;Test,&#8221; The second query would actually fail with the error  &#8220;<strong>Invalid object name &#8216;test&#8217;<\/strong>&#8221;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-1.jpg\" alt=\"SQL Server Collation\" width=\"273\" height=\"167\" class=\"alignnone size-full wp-image-34929\"><\/p>\n<p>If the database is set to case sensitivity is enabled, multiple tables with the same name can also be created without error. Because of this, it\u2019s even more important to following naming schemas.<\/p>\n<p>It is important to test any collation changes in a test environment before doing any of the previously stated steps. Minor misformatting such as one uncapitalized table name could cause processes that already exist to start failing. It could also cause select statements to return the wrong values.<\/p>\n<p><strong>Using Case Insensitivity:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-2.jpg\" alt=\"SQL Server Collation\" width=\"421\" height=\"269\" class=\"alignnone size-full wp-image-34930\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-2.jpg 421w, https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-2-300x192.jpg 300w\" sizes=\"(max-width: 421px) 100vw, 421px\" \/><br \/>\n<strong>Using Case Sensitivity:<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-3.jpg\" alt=\"SQL Server Collation\" width=\"326\" height=\"251\" class=\"alignnone size-full wp-image-34931\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-3.jpg 326w, https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-3-300x231.jpg 300w\" sizes=\"(max-width: 326px) 100vw, 326px\" \/><\/p>\n<h2>How is it set?<\/h2>\n<h3>Server Level<\/h3>\n<p>This is done during the installation. Consideration should be taken before changing this setting as it is difficult to alter once set. The options chosen here will determine the default database level collation as well.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-4.jpg\" alt=\"SQL Server Collation\" width=\"547\" height=\"293\" class=\"alignnone size-full wp-image-34932\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-4.jpg 547w, https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-4-300x161.jpg 300w\" sizes=\"(max-width: 547px) 100vw, 547px\" \/><\/p>\n<h3>Database Level<\/h3>\n<p>A database can have its own collation separate from the server level. This setting overrides the server level setting. For any columns that currently exist and the collation is not set to \u201cDatabase Default,\u201c the change at the database layer does not affect them but any new columns created will be created with the new setting at the database level unless otherwise specified.<\/p>\n<p>The following might need to be dropped and recreated in order to change a database level collation.<\/p>\n<ul>\n<li>A computed column<\/li>\n<li>An index<\/li>\n<li>Distribution statistics, either generated automatically or by the CREATE STATISTICS statement<\/li>\n<li>A CHECK constraint<\/li>\n<li>A FOREIGN KEY constraint<\/li>\n<\/ul>\n<p><strong>Create Database with Collation:<\/strong><br \/>\nT-SQL:<\/p>\n<pre><code>CREATE DATABASE [Test] ON  PRIMARY \n( NAME = N'Test', FILENAME = N'D:\\DATA\\Test.mdf' )\n LOG ON \n( NAME = N'Test_log', FILENAME = N'L:\\Logs\\Test_log.ldf') \nCOLLATE SQL_Latin1_General_CP1_CS_AS\n<\/code><\/pre>\n<p><strong>SSMS:<\/strong><\/p>\n<ol>\n<li>Right Click Databases and select &#8216;New Database.&#8217;<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-5.jpg\" alt=\"SQL Server Collation\" width=\"295\" height=\"126\" class=\"alignnone size-full wp-image-34933\"><\/p>\n<li>Fill in settings as needed.<\/li>\n<li>Open &#8216;Options&#8217; tab and select collation.<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-6.jpg\" alt=\"SQL Server Collation\" width=\"684\" height=\"203\" class=\"alignnone size-full wp-image-34934\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-6.jpg 684w, https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-6-300x89.jpg 300w\" sizes=\"(max-width: 684px) 100vw, 684px\" \/><\/ol>\n<h3>Alter Database Level Collation:<\/h3>\n<p><strong>T-SQL:<\/strong><\/p>\n<pre><code>USE [master]\nGO\nALTER DATABASE [AdventureWorks2012] COLLATE SQL_Latin1_General_CP1_CS_AS\nGO\n<\/code><\/pre>\n<p><strong>SSMS:<\/strong><\/p>\n<p>Open properties by right clicking on properties. Once there, access the &#8216;Options&#8217; tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-7.jpg\" alt=\"SQL Server Collation\" width=\"691\" height=\"392\" class=\"alignnone size-full wp-image-34935\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-7.jpg 691w, https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-7-300x170.jpg 300w\" sizes=\"(max-width: 691px) 100vw, 691px\" \/><\/p>\n<h2>Column Level<\/h2>\n<p>Collations can be altered on a column level as well. This can be done during or after table creation. This setting overrides the server and table level collation.<\/p>\n<p>The following might need to be dropped and recreated in order to change a column-level collation.<\/p>\n<ul>\n<li>A computed column<\/li>\n<li>An index<\/li>\n<li>Distribution statistics, either generated automatically or by the CREATE STATISTICS statement<\/li>\n<li>A CHECK constraint<\/li>\n<li>A FOREIGN KEY constraint<\/li>\n<\/ul>\n<p><strong>T-SQL set on creation:<\/strong><\/p>\n<pre><code>CREATE TABLE dbo.Test  \n  (\n\tTestKey   int PRIMARY KEY,  \n  \tTestCol    varchar(10) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL  \n  );  \nGO  \n<\/code><\/pre>\n<p><strong>T-SQL to alter after:<\/strong><\/p>\n<p><code><\/code><\/p>\n<p><code><\/p>\n<pre>ALTER TABLE dbo.Test ALTER COLUMN TestCol  \n            varchar(10)COLLATE SQL_Latin1_General_CI_AS NOT NULL;  \nGO  \n<\/pre>\n<p><\/code><code><\/code><br \/>\n<strong>SSMS:<\/strong><\/p>\n<ol>\n<li>Locate the table you would like to alter and expand the table and columns.<\/li>\n<li>Right-click any column and select &#8216;Modify&#8217;.<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-8.jpg\" alt=\"SQL Server Collation\" width=\"265\" height=\"98\" class=\"alignnone size-full wp-image-34936\"><\/p>\n<li>Locate Collation under Table Designer and click on the ellipsis in that column.<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-9.jpg\" alt=\"SQL Server Collation\" width=\"536\" height=\"229\" class=\"alignnone size-full wp-image-34937\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-9.jpg 536w, https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-9-300x128.jpg 300w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/p>\n<li>Select the collation needed.<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-10.jpg\" alt=\"\" width=\"355\" height=\"504\" class=\"alignnone size-full wp-image-34938\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-10.jpg 355w, https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation-10-211x300.jpg 211w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/ol>\n<h2>Temporary Collation T-SQL<\/h2>\n<p>Column Level Collation can be temporarily set within a query in the where or order by clause. This is useful when collation specific data is needed. The following example of its use in queries.<\/p>\n<p><code>--Create Test Table<br \/>\nDECLARE @Test TABLE<br \/>\n(<br \/>\ntestChar nvarchar(10)<br \/>\n)<\/code><\/p>\n<p><code>INSERT @Test VALUES ('Test'),('test'),('TEST'),('TeSt')<\/p>\n<p>--Basic Select<br \/>\nSELECT testChar<br \/>\nFROM @Test<\/p>\n<p>--Capital First letter only<br \/>\nSELECT testChar<br \/>\nFROM @Test<br \/>\nwhere testChar COLLATE SQL_Latin1_General_CP1_CS_AS = 'Test'<\/p>\n<p>--All lower Case<br \/>\nSELECT testChar<br \/>\nFROM @Test<br \/>\nwhere testChar COLLATE SQL_Latin1_General_CP1_CS_AS = 'test'<\/p>\n<p><\/code><code>--ORDER BY Case<br \/>\nSELECT testChar<br \/>\nFROM @Test<br \/>\nORDER BY  testChar COLLATE SQL_Latin1_General_CP1_CS_AS<br \/>\n<\/code><\/p>\n<h2>Final Thoughts<\/h2>\n<p>It is recommended to plan out collation settings ahead to time to prevent the need for changes later on. If changes are needed, this alters how SQL Server reads characters. Because of this, it is important to test these changes before adding them to a production environment. It could result in process failures and incorrect search results.<\/p>\n<p>It is also helpful to plan out processes ahead of time to work on instances that have strict collations set just in case collation changes are needed in the future. This will prevent errors from happening, and it will make the switch go a lot smoother.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Collation? Collation is a set of rules dictating how each group of characters within SQL Server is treated. A list of collations and their definitions can be found using the following query. SELECT name, description FROM sys.fn_helpcollations() WHERE COLLATIONPROPERTY(name, &#8216;CodePage&#8217;) = 0; There are two types of collations which will appear in the [&hellip;]<\/p>\n","protected":false},"author":45,"featured_media":34942,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","content-type":"","footnotes":""},"categories":[4166,55],"tags":[3669,4134],"class_list":["post-34925","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-sql-server","tag-sql-server-2017","tag-sql-server-performance-tuning"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.1 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>SQL Server Collation Settings and Processes<\/title>\n<meta name=\"description\" content=\"Collation is a set of rules dictating how each group of characters within SQL Server is treated. These are a few best practices for SQL Server Collation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Server Collation\" \/>\n<meta property=\"og:description\" content=\"Collation is a set of rules dictating how each group of characters within SQL Server is treated. These are a few best practices for SQL Server Collation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/\" \/>\n<meta property=\"og:site_name\" content=\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-14T16:57:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-11T01:08:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/virtual-dba.com\/media\/SQL-Server-Collation.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"557\" \/>\n\t<meta property=\"og:image:height\" content=\"291\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Tori Aub\u00e9\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@virtual_dba\" \/>\n<meta name=\"twitter:site\" content=\"@virtual_dba\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tori Aub\u00e9\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/\"},\"author\":{\"name\":\"Tori Aub\u00e9\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/f0b0eb5e504e4d59749d75bb365a6216\"},\"headline\":\"SQL Server Collation\",\"datePublished\":\"2018-06-14T16:57:38+00:00\",\"dateModified\":\"2021-02-11T01:08:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/\"},\"wordCount\":1105,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation.jpg\",\"keywords\":[\"sql server 2017\",\"sql server performance tuning\"],\"articleSection\":[\"Blog\",\"SQL Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/\",\"url\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/\",\"name\":\"SQL Server Collation Settings and Processes\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation.jpg\",\"datePublished\":\"2018-06-14T16:57:38+00:00\",\"dateModified\":\"2021-02-11T01:08:36+00:00\",\"description\":\"Collation is a set of rules dictating how each group of characters within SQL Server is treated. These are a few best practices for SQL Server Collation.\",\"breadcrumb\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#primaryimage\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation.jpg\",\"width\":557,\"height\":291,\"caption\":\"SQL Server Collation\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/virtual-dba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Server Collation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/virtual-dba.com\/#website\",\"url\":\"https:\/\/virtual-dba.com\/\",\"name\":\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\",\"description\":\"Remote Database Administration\",\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/virtual-dba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/virtual-dba.com\/#organization\",\"name\":\"Virtual-DBA: Remote DBA | Remote Database Administration\",\"alternateName\":\"Virtual-DBA powered by XTIVIA\",\"url\":\"https:\/\/virtual-dba.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg\",\"width\":557,\"height\":291,\"caption\":\"Virtual-DBA: Remote DBA | Remote Database Administration\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/virtual_dba\",\"https:\/\/www.linkedin.com\/showcase\/36220649\/\",\"https:\/\/www.youtube.com\/channel\/UCx3AIeUQ2ziTLKZSJDZ-SEg\"],\"description\":\"Eliminate database downtime and spiraling costs with XTIVIA\u2019s Virtual-DBA. In today\u2019s always-on business world, gaps in 24x7 on-call DBA support, neglected maintenance and security, or a stretched team struggling with overwhelming workloads can lead to costly disruptions and threaten business continuity. XTIVIA\u2019s Virtual-DBA provides the immediate, expert database administration you need, exactly when you need it, ensuring optimal performance, ironclad security, and significant cost savings without the burden of expanding your in-house team. The goal of Virtual-DBA is to provide a cost-effective solution for organizations seeking to optimize the security, management, maintenance, availability, and performance of their critical business systems, whether self-managed or cloud-managed (e.g., AWS RDS, Azure SQL Database). We accomplish this through a comprehensive remote DBA service offering designed specifically to meet the Oracle\u00ae, DB2\u00ae, Informix\u00ae, MySQL\u2122, PostgreSQL\u00ae, MongoDB\u00ae, MariaDB, and Microsoft SQL Server\u00ae, CockroachDB, Databricks, AWS, and Azure needs of our clients.\",\"email\":\"info@xtivia.com\",\"telephone\":\"8886853101\",\"legalName\":\"XTIVIA, Inc\",\"foundingDate\":\"1992-05-01\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"201\",\"maxValue\":\"500\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/f0b0eb5e504e4d59749d75bb365a6216\",\"name\":\"Tori Aub\u00e9\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2d1df14a9205007be59a3a3f5c20309436de7390e57c5b2899644ddd0a22b5a8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2d1df14a9205007be59a3a3f5c20309436de7390e57c5b2899644ddd0a22b5a8?s=96&d=mm&r=g\",\"caption\":\"Tori Aub\u00e9\"},\"url\":\"https:\/\/virtual-dba.com\/author\/tori-aube\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"SQL Server Collation Settings and Processes","description":"Collation is a set of rules dictating how each group of characters within SQL Server is treated. These are a few best practices for SQL Server Collation.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/","og_locale":"en_US","og_type":"article","og_title":"SQL Server Collation","og_description":"Collation is a set of rules dictating how each group of characters within SQL Server is treated. These are a few best practices for SQL Server Collation.","og_url":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/","og_site_name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","article_published_time":"2018-06-14T16:57:38+00:00","article_modified_time":"2021-02-11T01:08:36+00:00","og_image":[{"width":557,"height":291,"url":"https:\/\/virtual-dba.com\/media\/SQL-Server-Collation.jpg","type":"image\/jpeg"}],"author":"Tori Aub\u00e9","twitter_card":"summary_large_image","twitter_creator":"@virtual_dba","twitter_site":"@virtual_dba","twitter_misc":{"Written by":"Tori Aub\u00e9","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#article","isPartOf":{"@id":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/"},"author":{"name":"Tori Aub\u00e9","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/f0b0eb5e504e4d59749d75bb365a6216"},"headline":"SQL Server Collation","datePublished":"2018-06-14T16:57:38+00:00","dateModified":"2021-02-11T01:08:36+00:00","mainEntityOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/"},"wordCount":1105,"commentCount":0,"publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation.jpg","keywords":["sql server 2017","sql server performance tuning"],"articleSection":["Blog","SQL Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/","url":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/","name":"SQL Server Collation Settings and Processes","isPartOf":{"@id":"https:\/\/virtual-dba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#primaryimage"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation.jpg","datePublished":"2018-06-14T16:57:38+00:00","dateModified":"2021-02-11T01:08:36+00:00","description":"Collation is a set of rules dictating how each group of characters within SQL Server is treated. These are a few best practices for SQL Server Collation.","breadcrumb":{"@id":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/virtual-dba.com\/blog\/sql-server-collation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#primaryimage","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/SQL-Server-Collation.jpg","width":557,"height":291,"caption":"SQL Server Collation"},{"@type":"BreadcrumbList","@id":"https:\/\/virtual-dba.com\/blog\/sql-server-collation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/virtual-dba.com\/"},{"@type":"ListItem","position":2,"name":"SQL Server Collation"}]},{"@type":"WebSite","@id":"https:\/\/virtual-dba.com\/#website","url":"https:\/\/virtual-dba.com\/","name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","description":"Remote Database Administration","publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/virtual-dba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/virtual-dba.com\/#organization","name":"Virtual-DBA: Remote DBA | Remote Database Administration","alternateName":"Virtual-DBA powered by XTIVIA","url":"https:\/\/virtual-dba.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg","width":557,"height":291,"caption":"Virtual-DBA: Remote DBA | Remote Database Administration"},"image":{"@id":"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/virtual_dba","https:\/\/www.linkedin.com\/showcase\/36220649\/","https:\/\/www.youtube.com\/channel\/UCx3AIeUQ2ziTLKZSJDZ-SEg"],"description":"Eliminate database downtime and spiraling costs with XTIVIA\u2019s Virtual-DBA. In today\u2019s always-on business world, gaps in 24x7 on-call DBA support, neglected maintenance and security, or a stretched team struggling with overwhelming workloads can lead to costly disruptions and threaten business continuity. XTIVIA\u2019s Virtual-DBA provides the immediate, expert database administration you need, exactly when you need it, ensuring optimal performance, ironclad security, and significant cost savings without the burden of expanding your in-house team. The goal of Virtual-DBA is to provide a cost-effective solution for organizations seeking to optimize the security, management, maintenance, availability, and performance of their critical business systems, whether self-managed or cloud-managed (e.g., AWS RDS, Azure SQL Database). We accomplish this through a comprehensive remote DBA service offering designed specifically to meet the Oracle\u00ae, DB2\u00ae, Informix\u00ae, MySQL\u2122, PostgreSQL\u00ae, MongoDB\u00ae, MariaDB, and Microsoft SQL Server\u00ae, CockroachDB, Databricks, AWS, and Azure needs of our clients.","email":"info@xtivia.com","telephone":"8886853101","legalName":"XTIVIA, Inc","foundingDate":"1992-05-01","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"201","maxValue":"500"}},{"@type":"Person","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/f0b0eb5e504e4d59749d75bb365a6216","name":"Tori Aub\u00e9","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2d1df14a9205007be59a3a3f5c20309436de7390e57c5b2899644ddd0a22b5a8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d1df14a9205007be59a3a3f5c20309436de7390e57c5b2899644ddd0a22b5a8?s=96&d=mm&r=g","caption":"Tori Aub\u00e9"},"url":"https:\/\/virtual-dba.com\/author\/tori-aube\/"}]}},"_links":{"self":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/34925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/comments?post=34925"}],"version-history":[{"count":0,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/34925\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media\/34942"}],"wp:attachment":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media?parent=34925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/categories?post=34925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/tags?post=34925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}