Difference between nvarchar(max) and NText

439630 pts.
Tags:
NTEXT data type
NVARCHAR
SQL Server
Now, I'm a beginner using SQL Server and I'm looking to learn more about the advantages / disadvantages between "nvarchar(max)" and "NText" data types. Now, I don't need to know backward compatibility so I already know that "nvarchar(max)" isn't supported by previous SQL Server releases.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Please use nvarchar(max) if your SQL SERVER version>2005

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    If you are using a version that supports nvarchar(max) then there is no advantage in using NText, and you should avoid it.

    Ntext (and text and image) have been deprecated, and Microsoft's recommendation is to use nvarchar(max), varchar(max), and varbinary(max) instead.
    80,005 pointsBadges:
    report
  • reckonankit
    HI ITKE

    NText stores text as large object structure in database while nvarchar(max) behaves by default stores text in table structure and behaves like Ntext only when it exceeds 8000 bytes.So better to use nvarchar(max).

    Thanks 

    3,155 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: