Can any one tell me how can I writh to a local file (C:/my_file.txt) from a procedure. I need to create sql statments and store them in a file for later execution.
Thanks.
Printable View
Can any one tell me how can I writh to a local file (C:/my_file.txt) from a procedure. I need to create sql statments and store them in a file for later execution.
Thanks.
You have to use a package called UTIL_FILE.
I need to do this on a LOCAL comp, that means that I can't really use UTL_FILE.
Any suggestions?
Is the file has SQL commands or Data ? If SQL commands you can spool out and use that file. I guess little complex. Follow the thread and see that helps.
http://www.dbasupport.com/forums/sho...?threadid=5869
[Edited by sreddy on 02-13-2001 at 12:33 PM]
The procedure generate insert, update and delete statments that I want to stor in a file. How do I spool from a procedure???
Thanks.