You didn't mention which OS you're running Perl on. Note that if you are trying to connect from Perl on *nix to MS-SQL, you will also need a TDS driver. I've had very good luck with
connected to DBD::Sybase. (And when I started on this journey, I didn't even know that was possible. :-)