SQL Agent Command Line Not Saved

风流意气都作罢 提交于 2019-12-11 01:26:51

问题


I have a SSIS package I am trying to schedule. I create a new job under SQL Server Agent. On the Command line tab of the jobstep, I choose "Edit the command-line manually".

The changes are retained as I switch from tab to tab within the job step but whenever I exit and save the job, the changes are lost.

Any ideas what's going on?

I'm on SQL Server 2008.


回答1:


This is a confirmed bug, but here's a workaround that my team uses:

1) Script the create job statement (without your edits)

2) Delete the job from SQL Agent

3) Perform your edits in the create script

4) Execute the create job

This will allow you to keep your manually modified command line options.




回答2:


There is a bug with the Set Values properties in SQL Server Agent for SSIS packages. You need to save the job step while still on the tab I think(?). I'll see if I can remember and reproduce the steps, but you're not going crazy. ;)

You may need to click "OK" for the job step, and "OK" for the job before moving on to any other changes in the job.




回答3:


try a copy save as on the package and save change the protection level to encrypt sensitive data with password




回答4:


I had the same issue when trying to append /DumpOnError to the command line tab of the only step in a job. What I realized was that the change was really performed. And I found it out by generating the "create job" script. What was happening then? Well, it seems as if in the edit box of the command line tab you always got the "default" configuration, however the real one is. I checked it on three installations. 2008 standard, 2012 enterprise and 2017 enterprise.



来源:https://stackoverflow.com/questions/3039593/sql-agent-command-line-not-saved

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!