You will want to checkout a couple of resources to get you on your way
First, start with the
Files and Databases Tutorial here.
If you want to make your Microsoft life really easy manipulating SQL Data, checkout
DBD::ODBC
If you are using some other SQL datasource like mySQL or such...just do a CPAN search for DBD.
and lastly, but certainly not leastly, if this is anything more than just a casual endeavor on your part you will want to own a copy of
Programming the PERL DBI...never leave home without it ;-)