Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2005
    Location
    Waukesha WI
    Posts
    78

    Unanswered: INSER INTO from .bat file?

    I have code that I typically run via TOAD that does an
    INSERT INTO (....) SELECT (...) WHERE...

    If I place it into a .sql file, I thought I could call it using a bat file:

    sqlplus MySchema@PW @C:\OracleSQL\MyStuff.sql
    exit

    It doesn't work.
    Everything I read isn't really much help.

    I'm trying to automate this via VB and this is my latest stumbling block where I am at a loss.

    I'm sure there's a way - could someone tell me where to look?

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool



    sqlplus MySchema/PW@MyDB @C:\OracleSQL\MyStuff.sql

    ...should work

    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Posting Permissions

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