Re: T-SQL to script SQL Jobs

From: Lloyd Sheen (sqlguyremoveallofthis_at_tostopspamhotmail.com)
Date: 06/23/04

  • Next message: Maurizio Camurati: "SQLAgent crash"
    Date: Wed, 23 Jun 2004 20:18:57 GMT
    
    

    There is no sp which will script the job. The closest you can come is
    sp_help_job (see books online). This will give you all the info. Perhaps
    you can then create a T-SQL batch to create the script from the info
    recieved from the sp_help_job.

    The only other way would be to use SQL-DMO or enterprise manager.

    Lloyd Sheen

    "Dan" <moro0012@yahoo.com> wrote in message
    news:78da5a93.0406230955.712773e1@posting.google.com...
    > Hi,
    > Does anybody know what the T-SQL statement(s) is to script a SQL
    > Server Job(s) to a text file or to another server? I don't want to
    > manually script each job from Enterprise Manager. I also have never
    > gotten the copy jobs DTS Task to work completely.
    >
    > Thanks,
    > Dan


  • Next message: Maurizio Camurati: "SQLAgent crash"

    Relevant Pages

    • Re: Same Internal Server Error from last two days
      ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
      (perl.beginners)
    • Re: Same Internal Server Error from last two days
      ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
      (perl.beginners)
    • Same Internal Server Error from last two days
      ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
      (perl.beginners)
    • Re: Regarding a selection for mobile code/scripting language
      ... Client Side scripting, so the server can send script commands to the client. ... I decided they should be scripted and mobile code. ...
      (Vuln-Dev)
    • Re: HTTPSConnection script fails, but only on some servers (long)
      ... (HTTP/CONNECT + switch to HTTPS) ... wget and my python script. ... >>The python script works with server A, ... the problem seems to depend on both the client ...
      (comp.lang.python)

    Loading