isql -Usa -Sserver -Ppwd -i<filename>
I do not want to use the isql -Usa -Sserver -Ppwd <<EOF syntax.
I use K shell
thanks
AFAIK, you can't.
isql doesn't interpret environment variables inside of scripts.
You might be able to use an isql replacement (like sqsh) to do this.
> I do not want to use the isql -Usa -Sserver -Ppwd <<EOF syntax.
Why not?
[NB: Passing your password on the isql commandline is a bad idea
(especially when you're logging in as sa), as other users can find it
with 'ps']
I will try using sqsh.
The reason i dont want to use the EOF syntax is bcos there is a whole
bunch of code in the given(<filename>) sql file (used by other apps)
that i dont want to replicate in my unix script file (with a cut &
paste)
Also, i am aware of the security hazard in passing the pwd at
commandline & i am not doing that. That usage was just in my
post...thanks tho! :)