Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Posts
    33

    Unanswered: run script in DB2 CLP

    Hi there,

    I forget how to run a sql script (locates in my local folder) inside DB2 CLP.

    I am already in "db2> ", and already connected to DB


    Thanks,
    Jinse
    Last edited by jinsezh; 02-14-07 at 14:05.

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    You can't do that. You'll need to exit CLP and run your script as "db2 -tf script.sql"
    ---
    "It does not work" is not a valid problem statement.

  3. #3
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    With DB2 CLP, invoke a shell:

    Code:
    db2 => !db2 -f script
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •