use these statements in ur script
isql -Uuser_name -Ppassword<<!RUN>>outputfile_name
select * from temp
go
!RUN
after this execute the script
as
sh filename
Quote:
|
Originally Posted by bhaizone
I need to execute a shell script that in turn executes a stored procedure(eg. select * from temp) . Now I want to get the result of the stored procedure or the select statement output and store that result in a file. How to do this?
I am working in korn shell.
|