Users Pricing

blog

Home Blogs Unicode Character string datatypes – MindStick

Unicode Character string datatypes

Amit Singh 3374 09 Nov 2010 Updated 18 Sep 2014
Unicode character string data types are used to store Unicode character strings. SQL Server 2005 supports the following Unicode character string data types:
 NCHAR - Unicode character strings with a fixed length of n characters defined as NCHAR(n). The maximum length is 4,000 characters. NCHAR has two synonyms of NATIONAL CHAR and NATIONAL CHARACTER.
 VARCHAR - Unicode character strings with a variable length of n characters defined as VARCHAR(n). The maximum length is 4,000 characters. NVARCHAR has two synonyms of NATIONAL CHAR VARYING and NATIONAL CHARACTER VARYING. NVARCHAR also has special form as NVARCHAR(MAX), which can store up to 2^31-1 bytes.
 NTEXT - Unicode character strings with a variable length up to 2^31-1 (2,147,483,647) bytes. NTEXT is equivalent to NVARCHAR(MAX). NTEXT has a synonym of NATIONAL TEXT.
etc.

Amit Singh

Other


1 Comments


Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md