on 2012 Mar 23 12:52 PM
The following two statements work perfectly well in Interactive SQL version 10.0.1
SELECT * FROM sales_Transactions; OUTPUT TO 'C:\\\\Accounts\\\\DailySales.xls';
However, I can not add them to a procedure or event (SyBase Central 5.0.0.3278). The problem is in the OUTPUT statement, if I delete it a procedure saves.
What may be the reason and how can I schedule an export of SELECT result?
Many thanks,
Request clarification before answering.
OUTPUT TO is an Interactive SQL statement and does not get executed by the database server. You can, however, export data with the database server by using the UNLOAD TABLE statement:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
... or use the UNLOAD SELECT statement as a method to output arbitrary formatted data (i.e. not just table data).
User | Count |
---|---|
61 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.