Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Source command in perl script

by GrandFather (Sage)
on Oct 20, 2011 at 08:26 UTC ( #932587=note: print w/ replies, xml ) Need Help??

in reply to Source command in perl script

Can you do what you need using DBI and DBD::DB2?

True laziness is hard work

Comment on Re: Source command in perl script
Replies are listed 'Best First'.
Re^2: Source command in perl script
by bannaN (Acolyte) on Oct 20, 2011 at 08:34 UTC
    To my knowledge DBD::DB2 doesnt support execution of sql scripts / ddl file that sets up a database. But if thats wrong i would be very happy if someone would enlighten me.

    Just to be clear. The task of the ddl file contains definition of numerous tables.


      One of the examples (Listing 5) in this article show how to do DDL with DBI and DBD::DB2, so perhaps you can just convert your script.


      When your only tool is a hammer, all problems look like your thumb.

      Update: Trivial edit (specify which example performs DDL), changed plural to singular.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932587]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2015-10-06 19:01 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (158 votes), past polls