Hi,
Using DBI you can connect to the three databases you mentioned. You will need the appropriate driver for each.
I dont quite understand the rest of your request, perhaps I am being silly or perhaps you could describe your problem better. I dont think you should have a problem working out how to process each .sql file in a folder from a Perl script using DBI.
If you are new to Perl I would suggest having a look at the Tutorials section of this site, they cover everything you will need to know in order to complete this task.
Hope this helps.
Martin | [reply] |
Hi,
From what I can understand, the 1234.sql script is pretty much a template. The abcd.sql script fills in the template so that the resultant 'new' file contains pure sql. Is this what you mean?
If so, this can be done quite easily by using the Template Toolkit or similar.
Jason L. Froebe
Team Sybase member No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
| [reply] |
It would be most helpful if you could show us an example of these SQL-scripts so we have an idea of what you mean/need. Perhaps there is even a solution withing SQL itself possible (subrequests and the like spring to mind).
CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
| [reply] |