Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003

    Thumbs up Unanswered: Is "Master Spool" available in SQL?

    I want to take the spool of the execution of a file, which contains spool on and off within that. How can i get the master spool of everything?

    Our database is running in Windows. While the spool off command is executed, it is switch off the spool off all the open spools. Is there anyway i can switch off only selected spool files OR taking a log of all the executed commands including spool off also???

    Please let me know urgently, if anyone has any idea.



  2. #2
    Join Date
    Aug 2003
    Where the Surf Meets the Turf @Del Mar, CA
    Provided Answers: 1
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Apr 2004
    The problem is - you have no clue how spool works. "all the open spools. Is there anyway i can switch off only selected spool files" There is only one active spool file ever.

    spool a.log
    spool b.log
    select ...
    spool off
    spool off

    try a test like above. a.log has the contents of the 1st select only. b.log has contents of 2nd select only. the final spool off has no effect, other than to give a warning message "not spooling currently"
    Give a man a fish, you feed him for a day. Club him over the head with a fish, he'll leave you alone.

Posting Permissions

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