Results 1 to 2 of 2

Thread: Enterprise manager scheduled jobs

  1. #1
    Join Date
    Oct 2003
    Posts
    24

    Enterprise manager scheduled jobs

    Hello,

    I have a job scheduled within Enterprise manager. How can I configure this job, within enterprise manager, to generate output files having the current system date and time as part of the output file names.

    Regards,

    Albert


    NB: It is not a backup job just a simple query.

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You can write script to generate file name by tagging current date time.

    then build a string with osql command to pass the query as -Q"" and put filename as -o parameter and execute the string with xp_cmdshell.


    exec xp_cmdshell @sqlstring
    Last edited by skhanal; 04-16-2007 at 08:08 AM.

Posting Permissions

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