Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Nick Hounsome — — source: Informix-list mailing list archive (1991-1998)
In article <199408101442.JAA01228@news.cs.utexas.edu>
sinues@prcd.prc.mrms.navy.mil "John Sinues" writes:
>I have an ASCII file containing a number of INSERT-INTO statements. I
>want to execute this file and load an Informix OnLine database. Two questions:
>
> 1. How can I load this script from the command line? Can I
> do something like this:
>
> isql -ansi {dbname} < {SQL_script.sql file}
isql -ansi <dbname> - - file
should do it (I've not tried it with -ansi though - you are probably the
only persoon in the world who actualy uses it :+> )
You don't need an EXIT the end of file will be detected.
FYI I found it useful to write a little ESQL program the just read lines
and did an EXECUTE IMMEDIATE on them so that I did not have to have isql
on all machines.
[You can also use dbaccess in exectly the same way as ISQL]
[STUFF DELETED]
--
Nick Hounsome
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.