Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Parameter passing from SQLPLUS to NT Batch

Re: Parameter passing from SQLPLUS to NT Batch

From: James Williams <willjamu_at_mindspring.com>
Date: Mon, 15 Apr 2002 21:41:02 GMT
Message-ID: <3cbb4893.18755915@nntp.mindspring.com>


On Mon, 15 Apr 2002 22:03:57 +0100, "TC3 Racer" <gordonchapman_at_hotmail.com> wrote:

Just spool your output and use the SQLPLUS host command to run a script that reads the output file.

spool output.file
select count(*)
spool off

!command.bat

>I want to use an NT batch file, running every hour, to do a
>
>Select count(*) from tablename.
>
>I then want to pass the result out and if its zero, have another batch file
>that does various things
>
>How do I get the the value out of the sql script
>
>Thanks in advance
>
>GC
>
>
>
>
Received on Mon Apr 15 2002 - 16:41:02 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US