[FIXED]: How to catch TinyTds::Error on Rails Read this article in: InglêsEspanholPortuguêsRussian Issue 2024Q1 (current) The following worked for me: Somehow, you have to rescue ActiveRecord::StatementInvalid and not TinyTds::Error.