My local system is with sql 2005,one field in a table declare as nvarchar(200),But the server supports sql 2008.When i upload any data in this field it stores only 50 charactors.Locally it runs fine,but on-line not.Locally nvarchar(200) stores 200 characters but on-line it stores only 50 characters
Suggest me.
Thanks in ad.
With regards
Naveen Verma
Nvarchar problen in sql 2005 & sql 2008
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

George Onofrei56 reputationPosted Jan 13, 2011, 2:28 AM EST
Vijay YadavRank #1,637 · 943 reputationPosted Jan 20, 2011, 3:15 AM EST
Just check on your server whther the datatype is nvarchar(200) or not and if yest then use alternative varchar(200).
Thanks,
Vijay
Suthish NairRank #92 · 22.8K reputationPosted Jan 21, 2011, 12:51 AM EST
SQL Server 2008 supports two data types nvarchar(MAX) and nvarchar(50).
So you need to use nvarchar(MAX).