Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8306981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:26:16+00:00 2026-06-08T18:26:16+00:00

I wonder about the difference between different data types in SQL Server to store

  • 0

I wonder about the difference between different data types in SQL Server to store strings.

For example ntext, nvarchar(X), varchar, nvarchar(max) etc.

What could be the advices in terms of flexibility, resource usage and performance?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:26:18+00:00Added an answer on June 8, 2026 at 6:26 pm
    • All the string types the N are unicode – 2 bytes for each characters, will store things like Cyrillic, Asian, Arabic, Hebrew alphabets – while those without the leading N are not unicode (only properly store Western European / ASCII characters)

    • TEXT and NTEXT are deprecated – don’t use those anymore – use (N)VARCHAR(MAX) instead – see the relevant MSDN documentation on that topic for details

    • NVARCHAR(X) is a “normal” string, max. of 8000 bytes of data (4000 Unicode or 8000 non-Unicode characters) – stored in the regular page in SQL Server

    • NVARCHAR(MAX) is a special type, up to 2 GB of storage (1 billion Unicode characters) – but it requires special handling in storage, more effort needed, performs a bit slower than regular strings; use only when absolutely needed

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wonder about the difference between creating a camera class and GLU.gluLookAt function in
I wonder about that can I write native SQL to add or delete operations
I know very little about Agile but I wonder if there is any difference
I wonder how you guys manage deployment of a database between 2 SQL Servers,
In Windows systems different data types have the same size (see http://msdn.microsoft.com/en-us/library/s3f49ktz(v=VS.100).aspx ) I
I have been writing some queries about SQL Server in order to learn. I
I have a table that holds information about different events, for example CREATE TABLE
Whenever I ask people about the difference between an API and a library, I
Hello I just had a question about compatibility between the different versions of Android
I'm working on a browser-game and I can't help but wonder about what's the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.