SQL Flow Field Guide

nchar & nvarchar (data type)

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

data type nchar & nvarchar

What changes

Input
none
Output or change
none

Syntax at a glance

nchar [ ( n ) ] | nvarchar [ ( n | max ) ]

Work example

Store Unicode text such as names and labels from multiple writing systems.

Use nvarchar for variable-width values and prefix Unicode literals with N.

Check your work Declared length uses byte-pair units, and supplementary characters can need two pairs.

Practice SQL

Open in SQL Flow
SELECT CAST(N'नमस्ते' AS nvarchar(20)) AS greeting;

Open Microsoft Learn for full syntax, permissions, and details for your version.