According to @mst FreeTDS is a bag of razorblades.
That’s right folks, don’t use it. The new way to go is Microsoft ODBC Driver for SQL Server on Linux.
Unfortunately its a nightmare to install on debian. Luckily some very smart people wrote a lovely little howto: Install and Configure the MS ODBC Driver on Debian.