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 ShankerRank #375 · 6.7K reputationPosted Apr 30, 2015, 12:20 AM EDT
check below link
http://www.c-sharpcorner.com/UploadFile/cda5ba/difference-between-char-nchar-varchar-and-nvarchar-data-ty/
Gowtham RajamanickamRank #57 · 29K reputationPosted Apr 30, 2015, 12:25 AM EDT
Anurag Singh131 reputationPosted Apr 30, 2015, 1:50 AM EDT
Abhay ShankerRank #375 · 6.7K reputationPosted Apr 30, 2015, 8:41 AM EDT