SQL Server field getting truncated

前端 未结 3 1446
轻奢々
轻奢々 2021-01-05 10:55

Ok I\'m using SQL Server 2008 and have a table field of type VARCHAR(MAX). Problem is that when saving information using Hibernate, the contents o

3条回答
  •  失恋的感觉
    2021-01-05 11:28

    I had a similar situation. I have an excel sheet. A couple of columns in the sheet may have more than 255 chars, sometimes even 500. A simple way was to sort the rows of data, placing the rows with the most characters up on top. You actually need just one row. When SQL imports the data, it recognizes the field being more than 255 characters and imports the entire data :)

    Otherwise, they suggested using regedit to change a specific value. Didn't want to do that.

    Hope this helps

提交回复
热议问题