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 of VARCHAR(MAX)
field is getting truncated. I don't see any error messages on either the app server or database server.
The content of this field is just a plain text file. The size of this text file is 383KB.
This is what I have done so far to troubleshoot this problem:
Changed the database field from
VARCHAR(MAX)
to TEXT and same problem occurs.Used the SQL Server Profiler and I noticed that the full text content is being
received by the database server, but for some reason the profiler freezes when trying to view the SQL with the truncation problem. Like I said, just before it freezes, I
did noticed that the full text file content (383KB) are being received, so it seems that it might be the database problem.
Has anyone encountered this problem before? Any ideas what causes this truncation?
NOTE: just want to mention that I'm just going into SQL Studio and just copying the TEXT field content and pasting it to Textpad. That's how I noticed it's getting truncated.
Thanks in advance.
SQL Server Profiler is a tool to be avoided on busy production servers, as shown by the tenfold increase in duration and significant reduction in throughput for the replay.
– Graben