New "nvarchar(max)" Columns Break on Promotion

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
JefferyD
Posts: 178
Joined: August 31st, 2021, 11:37 am
Contact:

New "nvarchar(max)" Columns Break on Promotion

Unread post by JefferyD »

In "Database Maintenance", I added a new column as "nvarchar(max)". It seemed to work fine, but I did notice a difference between existing "nvarchar(max)" columns and the new one I added. The existing ones show "-1" as "MAX LENGTH", while the new one has "max" instead.
image.png
image.png (6.56 KiB) Viewed 350 times
image.png
image.png (6.56 KiB) Viewed 350 times

After I promoted to QA though, I was getting data truncation error messages. Querying the size of the column, it seems like it was "nvarchar(1)" instead of "nvarchar(-1)".
word count: 94

Tags:
Post Reply