Difference between nchar,nvarchar,varchar

Posted by Muhsinathk under Sql Server on 6/11/2012 | Points: 10 | Views : 2895 | Status : [Member] | Replies : 3
What is difference between nchar,nvarchar and varchar?




Responses

Posted by: Jobin on: 6/11/2012 [Member] Starter | Points: 25

Up
0
Down
nchar and nvarchar can store Unicode characters.

char and varchar cannot store Unicode characters.

char and nchar are fixed-length which will reserve storage space for number of characters you specify even if you don't use up all that space.

varchar and nvarchar are variable-length which will only use up spaces for the characters you store. It will not reserve storage like char or nchar.

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 6/11/2012 [Member] Bronze | Points: 25

Up
0
Down
Thank you Jobin

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jobin on: 6/11/2012 [Member] Starter | Points: 25

Up
0
Down
You are welcome Muhsinath.

Muhsinathk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response