i am using the column varchar.After that also i am facing same error in storing imagepath
SQL Server String or binary data would be truncated
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
i am using the column varchar.After that also i am facing same error in storing imagepath
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Jul 22, 2021, 2:35 AM EDT
Surya K61 reputationPosted Jul 22, 2021, 2:37 AM EDT
You can use NVARCHAR(MAXIMUM_LENGTH).
Since NVARCHAR uses 2 bytes per character, that's approx. 1 billion characters can be stored.
The max size for a column of type NVARCHAR(MAXIMUM_LENGTH) is 2GB of storage.
Rajanikant HawaldarRank #110 · 20.3K reputationPosted Jul 22, 2021, 1:25 AM EDT
Anupam MaitiRank #295 · 8.5K reputationPosted Jul 22, 2021, 3:19 AM EDT
Nirmal DayalRank #1,712 · 886 reputationPosted Jul 22, 2021, 3:38 AM EDT