The TEXTSIZE trap: how TDS silently truncates your binary data in Rails

· Thoughtbot · May 7, 2026, 12:54 a.m.
Summary
This post discusses a specific issue related to SQL Server's default session-level setting that truncates binary data to 4KB before it reaches Ruby, highlighting that while most drivers correct this, the tiny_tds driver does not address the issue, which could lead to data loss.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →