Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Output to a file from sybase stored procedure ?

Status
Not open for further replies.

sushanth04

Programmer
Feb 24, 2004
2
US
Hi

I need to query data from a couple of tables and write the result sets into a file using a stored procedure.I am new to sybase.Please help.

Regards
Sushanth.B
 
Have you tried the "output to" command?

Tom.
 
What O/S is this on ?
If unix, then you could call a procedure from a script
eg :
isql -U${DBUSER} -P${DBPASS} -S${SRV}<<-EOF > /tmp/lc_rts1
select * from RTSSchemeTable
go
EOF


and file /tmp/lc_rts1 will have the output in it.
HTH

Dickie Bird (:)-)))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top