Re: How to run SQL Script from forms 6i?
- From: Martin Doherty <martin.doherty@xxxxxxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 11:09:21 -0500
Scott wrote:
put a button on the form, this is what the user will clickutl_file emits from the database server; it puts the output into the file system available to the database server.
in the button click event:
- define a cursor for your select
- open the cursor
- open the output file
- loop over fetch, utl_file
- close the cursor
- close the output file
Note: util_file puts the output on the server, if you need the output
on the user's machine use the text_io built-in package.
text_io emits from the Forms execution engine; it puts the output into the file system available to the application server.
Neither one outputs a file to the user's local PC disk (unless things have changed radically since my Forms 4.5 days).
Martin
.
- Follow-Ups:
- Re: How to run SQL Script from forms 6i?
- From: Frank van Bortel
- Re: How to run SQL Script from forms 6i?
- From: Frank van Bortel
- Re: How to run SQL Script from forms 6i?
- References:
- How to run SQL Script from forms 6i?
- From: insbor
- Re: How to run SQL Script from forms 6i?
- From: Sybrand Bakker
- Re: How to run SQL Script from forms 6i?
- From: insbor
- Re: How to run SQL Script from forms 6i?
- From: Scott
- How to run SQL Script from forms 6i?
- Prev by Date: Re: How to run SQL Script from forms 6i?
- Next by Date: Re: Error handling routines....
- Previous by thread: Re: How to run SQL Script from forms 6i?
- Next by thread: Re: How to run SQL Script from forms 6i?
- Index(es):