Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL Jobs Output

SQL Jobs Output

Scheduled Pinned Locked Moved Database
databasesharepointhelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Groulien
    wrote on last edited by
    #1

    Hello CP, I've set up a job to perform a stored procedure at a given time, nothing special. In the step (which triggers the SP) I've specified the output file in the 'advanced' section. The output in the file is the execution time (moment) and the 'select' form the SP. My problem is the output file format. Does anyone know how to set it to CSV or perhaps another solution?

    U 1 Reply Last reply
    0
    • G Groulien

      Hello CP, I've set up a job to perform a stored procedure at a given time, nothing special. In the step (which triggers the SP) I've specified the output file in the 'advanced' section. The output in the file is the execution time (moment) and the 'select' form the SP. My problem is the output file format. Does anyone know how to set it to CSV or perhaps another solution?

      U Offline
      U Offline
      UNCRushFan
      wrote on last edited by
      #2

      Is the goal to get the data output from the stored procedure into a CSV file? That is not possible (in a useable format anyway) in the job step's advanced properties. Specifying a file path and file name there allows SQL to save the detailed information regarding the job's execution to a text file. To get your stored proc output data into a CSV file, a different coding approach is needed (like SSIS, BCP, or the like). Or, did you actually want to get the detailed information about the job running into a CSV file? Apologies if I've misunderstood your question. :cool:

      modified on Thursday, June 23, 2011 5:41 PM

      G 1 Reply Last reply
      0
      • U UNCRushFan

        Is the goal to get the data output from the stored procedure into a CSV file? That is not possible (in a useable format anyway) in the job step's advanced properties. Specifying a file path and file name there allows SQL to save the detailed information regarding the job's execution to a text file. To get your stored proc output data into a CSV file, a different coding approach is needed (like SSIS, BCP, or the like). Or, did you actually want to get the detailed information about the job running into a CSV file? Apologies if I've misunderstood your question. :cool:

        modified on Thursday, June 23, 2011 5:41 PM

        G Offline
        G Offline
        Groulien
        wrote on last edited by
        #3

        You understood it perfectly. I had been looking at BCP and tried to format it correctly (from the command prompt, not sqlcmd), but it bugged on my nested stored procedures. Haven't looked at SSIS yet, gonna do that now. But I'm getting off-topic. You answered my question.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups