Exact Difference between nvarchar and varchar data type.
What is the Exact difference between nvarchar and varchar data type in SQL server?Please explain me in your words.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Salman BegRank #284 · 8.8K reputationPosted Feb 24, 2020, 8:10 PM EST
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Feb 24, 2020, 8:12 PM EST
Ravi PatelRank #439 · 5.7K reputationPosted Feb 24, 2020, 10:01 PM EST
Vishvjit ShindeRank #3,119 · 459 reputationPosted Mar 2, 2020, 7:41 PM EST
NVARCHAR:
Harsh ShahRank #1,322 · 1.3K reputationPosted Mar 3, 2020, 5:38 PM EST
Sreekanth ReddyRank #726 · 3.2K reputationPosted Mar 5, 2020, 6:26 PM EST
@Priyanka Singh
After seeing all the posts let me explain in practical way.
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 6, 2020, 6:06 PM EST
Rajeev KumarRank #1,334 · 1.3K reputationPosted Mar 6, 2023, 8:43 AM EST
The key difference between varchar and nvarchar is the way they are stored, varchar is stored as regular 8-bit data(1 byte per character) and nvarchar stores data at 2 bytes per character. Due to this reason, nvarchar can hold upto 4000 characters and it takes double the space as SQL varchar.
Vishal YelveRank #178 · 13.6K reputationPosted Mar 6, 2023, 9:48 AM EST
Hey Priyanka,
Please refer below artile it will clear your doubt
https://www.c-sharpcorner.com/UploadFile/cda5ba/difference-between-char-nchar-varchar-and-nvarchar-data-ty/