You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 86cdb67
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/relational-databases/collations/collation-and-unicode-support.md
+4-55Lines changed: 4 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -624,67 +624,16 @@ For example, consider a column defined as **NVARCHAR(100)** that stores 180 byte
624
624
625
625
Therefore, it's required to know in advance what's the projected byte size for the column definition before converting existing data to UTF-8, and adjust the new data type size accordingly. Refer to the [!INCLUDE[tsql](../../includes/tsql-md.md)] script or the SQL Notebook in the [Data Samples GitHub](https://github.com/microsoft/sql-server-samples/blob/master/samples/features/unicode), which use the [DATALENGTH](../../t-sql/functions/datalength-transact-sql.md) function and the [COLLATE](../../t-sql/statements/collations.md) statement to determine the correct data length requirements for UTF-8 conversion operations in an existing database.
626
626
627
-
To change the server collation, allowing new databases to inherit the system collation by default, see [Set or Change the Server Collation](../../relational-databases/collations/set-or-change-the-server-collation.md).
627
+
To change the column collation and data type in an existing table, use one of the methods described in [Set or Change the Column Collation](../../relational-databases/collations/set-or-change-the-column-collation.md).
628
628
629
-
To change the database collation, allowing new objects to inherit the database collation by default, see [Set or Change the Database Collation](../../relational-databases/collations/set-or-change-the-database-collation.md).
630
-
631
-
To change the column collation and data type in an existing table, use one of the methods described below. For more information, see [Set or Change the Column Collation](../../relational-databases/collations/set-or-change-the-column-collation.md).
632
-
633
-
#### Convert column data
634
-
Consider one of the existing tables defined below:
635
-
636
-
```sql
637
-
-- NVARCHAR column is encoded in UTF-16 because a supplementary character enabled collation is used
This method is much faster than in-place conversion, but handling complex schemas with many dependencies (FKs, PKs, Triggers, DFs) and synching the tail of the table (if the database is in use) requires more planning.
629
+
To change the database collation, allowing new objects to inherit the database collation by default, or to change the server collation, allowing new databases to inherit the system collation by default, see the [Related tasks](#Related_Tasks) section of this article.
681
630
682
631
## <aname="Related_Tasks"></a> Related tasks
683
632
684
633
|Task|Topic|
685
634
|----------|-----------|
686
-
|Describes how to set or change the collation of the instance of SQL Server|[Set or Change the Server Collation](../../relational-databases/collations/set-or-change-the-server-collation.md)|
687
-
|Describes how to set or change the collation of a user database|[Set or Change the Database Collation](../../relational-databases/collations/set-or-change-the-database-collation.md)|
635
+
|Describes how to set or change the collation of the instance of SQL Server. Note that changing the server collation does not change the collation of existing databases.|[Set or Change the Server Collation](../../relational-databases/collations/set-or-change-the-server-collation.md)|
636
+
|Describes how to set or change the collation of a user database. Note that changing a database collation does not change the collation of existing table columns.|[Set or Change the Database Collation](../../relational-databases/collations/set-or-change-the-database-collation.md)|
688
637
|Describes how to set or change the collation of a column in the database|[Set or Change the Column Collation](../../relational-databases/collations/set-or-change-the-column-collation.md)|
689
638
|Describes how to return collation information at the server, database, or column level|[View Collation Information](../../relational-databases/collations/view-collation-information.md)|
690
639
|Describes how to write Transact-SQL statements that are more portable from one language to another, or support multiple languages more easily|[Write International Transact-SQL Statements](../../relational-databases/collations/write-international-transact-sql-statements.md)|
0 commit comments