in reply to SQL Server

You will definitely want to use DBI (as others have said). As for which driver, I will say I've had good luck with using DBD::Sybase in talking to SQL Server 2000 here. You need to install the FreeTDS drivers as well. See http://www.freetds.org for more details about how this works.