whats the limit of nvarchar in SQL Server 2014?

Wueest Alois 20 Reputation points
2024-10-09T10:39:32.83+00:00

I would like know how many characters can be saved in a nvarchar column in older sql server versions

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,013 questions
0 comments No comments
{count} votes

Accepted answer
  1. Olaf Helper 45,111 Reputation points
    2024-10-09T11:02:53.1966667+00:00

    The size is as long as you define it, either between 1-4000 chararcters, or max = 2^31.

    See https://learn.microsoft.com/en-us/sql/t-sql/data-types/nchar-and-nvarchar-transact-sql?view=sql-server-ver16


1 additional answer

Sort by: Most helpful
  1. vishwakarma, Suman 0 Reputation points
    2024-10-09T11:06:31.7733333+00:00

    In SQL Server 2014, The limit of nvarchar is upto 4000 and for nvarchar(max) is upto 2GB

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.