Big data being chopped off

16 views
Skip to first unread message

Rahul Sharma

unread,
May 1, 2013, 5:48:28 AM5/1/13
to rails-sqlse...@googlegroups.com
Hi,

I am using activerecord-sqlserver-adapter and trying to read from a table that has a column of type VARCHAR(MAX). This column contains some XML. When I read this xml using activerecord, the result being returned is not the full XML but some of it is cut off. Is there a way to fix it? Is there some sort of limit on the size?

Thanks,

Rahul

Ken Collins

unread,
May 1, 2013, 7:31:39 AM5/1/13
to rails-sqlse...@googlegroups.com

SQL Server truncates large text columns by default. You can configure this with the SET TEXTSIZE. Since custom settings are so common, especially with TEXTSIZE, it is included in the README here under the how to configure your connection section.

https://github.com/rails-sqlserver/activerecord-sqlserver-adapter#configure-connection--app-name


- HTH,
Ken
Reply all
Reply to author
Forward
0 new messages