Hi,
I have a column NAME and I am defining its datatype like: varchar(50), char(50), nvarchar(50) and nchar(50). And after that if I'll print 'ANURAG', then how much bytes it will take in all conditions???
Means:
Name varchar(50) then I'll print 'ANURAG' then bytes=???
Name char(50) then I'll print 'ANURAG' then bytes=???
Name nvarchar(50) then I'll print 'ANURAG' then bytes=???
Name nchar(50) then I'll print 'ANURAG' then bytes=???
Thanks:
Anurag Singh
Anurag Singh

Abhay ShankerPosted Apr 30, 2015, 12:41 PM
Anurag SinghPosted Apr 30, 2015, 5:50 AM
Gowtham RajamanickamPosted Apr 30, 2015, 4:25 AM
Abhay ShankerPosted Apr 30, 2015, 4:20 AM
check below link
http://www.c-sharpcorner.com/UploadFile/cda5ba/difference-between-char-nchar-varchar-and-nvarchar-data-ty/