In 2000 or so SQL Server began supporting XML queries and responses. That was the last time I had to access SQL Server from Linux via perl and I did so by sending an XML query and receiving an XML response. I am no longer on that project and I do not have access to the docs any more. I do recall that it was very simple for the queries and responses we did.