use DBI; $DSN = "my_datasourcename"; # Name of the DSN referring to the remote MSSQL-database with IP-adress, logins etc. $dbh = DBI->connect("dbi:ODBC:$DSN;or die "$DBI::errstr\n";