C
clone.of.snake
I've struggled a few days on whether or not to shamefully send this
message to beg for help. But time is limited, so here goes.
I'm a MS SQL Server DB Analyst working on backend CRM and financial
systems, our company was bought out by an internet company which is
mainly a FreeBSD & OSS. Now, we're slowly but steadily being migrated
to MySQL and Oracle. So, as u can imagine, if I don't jump ship and
aquire new skillset, I'm sure to be laid off.
We now have a data quality project to cleans the data before we migrate
to Oracle, what I need to do, is to import multiple excel xls into SQL
Svr. I want to take this chance to write my first Perl script, but I
need a little pointers from you experts.
Basically, the script just need to look into a directory, find all the
filenames and put them in an array. Then it loops through each
filename, substitute it in the "source filepath" value below:
[Source Filepath]
value=C:\$perl_xls_filename_variable
[Destination Server]
value=WINSQL2K
[Destination Database]
value=Pubs
[Destination Table]
value=pubs.dbo.BcpText
This will be an ini file that will be used by a DTS package for
importing data. The perl script will call this DTS package. So 1)
change the source filepath, 2) call DTS package, LOOP 1) change to next
source filepath, 2) call DTS package... etc.
Now, I'm not asking you to write the script for me. I have access to
O'Reilly's Learning Perl one Safari online. I'm reading through it
right now, but since this project is due next week, I need to jump
through the chapters and get it done ASAP. Can someone please point me
to the right chapters or right functions to read / use? (Mainly the
"open this direction" and "get all the filenames" part.)
Thanks for any help...
Nick
message to beg for help. But time is limited, so here goes.
I'm a MS SQL Server DB Analyst working on backend CRM and financial
systems, our company was bought out by an internet company which is
mainly a FreeBSD & OSS. Now, we're slowly but steadily being migrated
to MySQL and Oracle. So, as u can imagine, if I don't jump ship and
aquire new skillset, I'm sure to be laid off.
We now have a data quality project to cleans the data before we migrate
to Oracle, what I need to do, is to import multiple excel xls into SQL
Svr. I want to take this chance to write my first Perl script, but I
need a little pointers from you experts.
Basically, the script just need to look into a directory, find all the
filenames and put them in an array. Then it loops through each
filename, substitute it in the "source filepath" value below:
[Source Filepath]
value=C:\$perl_xls_filename_variable
[Destination Server]
value=WINSQL2K
[Destination Database]
value=Pubs
[Destination Table]
value=pubs.dbo.BcpText
This will be an ini file that will be used by a DTS package for
importing data. The perl script will call this DTS package. So 1)
change the source filepath, 2) call DTS package, LOOP 1) change to next
source filepath, 2) call DTS package... etc.
Now, I'm not asking you to write the script for me. I have access to
O'Reilly's Learning Perl one Safari online. I'm reading through it
right now, but since this project is due next week, I need to jump
through the chapters and get it done ASAP. Can someone please point me
to the right chapters or right functions to read / use? (Mainly the
"open this direction" and "get all the filenames" part.)
Thanks for any help...
Nick