DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: Writing to a local file from a procedure

  1. #1
    Join Date
    Aug 2000
    Location
    Ny
    Posts
    105

    Cool

    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.

  2. #2
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    [url]http://www.dbasupport.com/forums/showthread.php?threadid=6702[/url]

  3. #3
    Join Date
    Jan 2001
    Posts
    515

    Smile UTIL_FILE

    You have to use a package called UTIL_FILE.

  4. #4
    Join Date
    Aug 2000
    Location
    Ny
    Posts
    105
    I need to do this on a LOCAL comp, that means that I can't really use UTL_FILE.

    Any suggestions?

  5. #5
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    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.

    [url]http://www.dbasupport.com/forums/showthread.php?threadid=5869[/url]


    [Edited by sreddy on 02-13-2001 at 12:33 PM]

  6. #6
    Join Date
    Aug 2000
    Location
    Ny
    Posts
    105
    The procedure generate insert, update and delete statments that I want to stor in a file. How do I spool from a procedure???

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width