Hi Monks,
I would like your assistance to write a program that searches for files in a directory and grabs file's name to store it on a variable, then connect to SQL Server 2000 Database and select records out of a table base on the values store in an array variable; then format the records with a padded zeros to meet standards. Finally it will write the output to a file.
I'm not familiar using Perl to Connect to SQL Server 2000 or formatting a variable to pad it with zeros to meet a certain length. Does anyone know any samples on how to a connect to a SQL Server database and format variables.
Could this program best accomplish by writing a store procedure then connecting to sql server 2000 to run the store procedure and grab the output fields to a file??
I haven't seen that much DBI programming. I'll appreciate your assistance on how to accomplish this task.