On 13Oct2008 18:47, Dennis Kaptain <dkaptain at yahoo.com.mx> wrote: | #!/usr/bin/perl -w | # this PERL script will connect to a remote MySQL database and execute a select statement The OP wants MSQL (Micro$oft SQL), not MySQL. Hence the ODBC remarks. -- Cameron Simpson <cs at zip.com.au> DoD#743 http://www.cskk.ezoshosting.com/cs/