Re: Running scripts within SQL
- From: Martin Fuerderer <MARTINFU@xxxxxxxxxx>
- Date: Tue, 23 Oct 2007 16:39:53 +0200
Hi,
not knowing oracle and their "@", I'm not sure what
exactly you are trying to achieve ...:
- running a shell script locally (on client machine)?:
Depends on the client you use as it is interpreting
the SQL. E.g. with dbaccess you can use the '!', like
in the following 3-line SQL script "hello.sql":
select name from sysdatabases;
! echo "Hello, world\!"
select name from sysdatabases;
which you then run with the command:
dbaccess sysmaster hello.sql
- running a shell script on the server machine?:
I think you can do that by using a stored procedure
and the "system ..." command.
Of course the shell script must be present on the
server machine.
Regards,
Martin
--
Martin Fuerderer
IBM Informix Development Munich, Germany
Information Management
IBM Deutschland GmbH
Chairman of the Supervisory Board: Hans Ulrich Märki
Board of Management: Martin Jetter (Chairman), Rudolf Bauer, Christian
Diedrich, Christoph Grandpierre, Matthias Hartmann, Thomas Fell, Michael
Diemer
Corporate Seat: Stuttgart, Germany; Reg.-Gericht: Amtsgericht Stuttgart,
HRB-Nr.: 14 562 WEEE-Reg.-Nr. DE 99369940
informix-list-bounces@xxxxxxxx wrote on 23.10.2007 15:04:31:
Hello all,
Quick question for you here,
If I am running a piece of SQL, is it possible to run a script from
within the SQL.....in oracle I know you would use the "@" so what
would you use in Informix?
Thanks in advance.
Cheers,
Howard
_______________________________________________
Informix-list mailing list
Informix-list@xxxxxxxx
http://www.iiug.org/mailman/listinfo/informix-list
.
- References:
- Running scripts within SQL
- From: howie.lfc@xxxxxxxxxxxxxx
- Running scripts within SQL
- Prev by Date: Re: Running scripts within SQL
- Next by Date: Re: Running scripts within SQL
- Previous by thread: Re: Running scripts within SQL
- Next by thread: Re: Running scripts within SQL
- Index(es):
Relevant Pages
|
|