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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted Mar 6, 2023, 2:48 PM
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/
Rajeev KumarPosted Mar 6, 2023, 1:43 PM
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.
Jignesh KumarPosted Mar 6, 2020, 11:06 PM
Sreekanth ReddyPosted Mar 5, 2020, 11:26 PM
@Priyanka Singh
After seeing all the posts let me explain in practical way.
Harsh ShahPosted Mar 3, 2020, 10:38 PM
Vishvjit ShindePosted Mar 3, 2020, 12:41 AM
NVARCHAR:
Ravi PatelPosted Feb 25, 2020, 3:01 AM
Rajanikant HawaldarPosted Feb 25, 2020, 1:12 AM
Salman BegPosted Feb 25, 2020, 1:10 AM