3

I created an SSIS package entitled "DimEntity.dtsx"

I followed the instructions from this link to run this SSIS package using a scheduled Job.

http://blog.sqlauthority.com/2011/05/23/sql-server-running-ssis-package-in-scheduled-job/

After following the process of running-ssis-package-in-scheduled-job, I got this error after clicking OK from the image below.

enter image description here

Create failed for Job 'SSIS Package Exec'. (Microsoft.SqlServer.Smo)


ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)


Cannot insert the value NULL into column 'owner_sid', table 'msdb.dbo.sysjobs'; column does not allow nulls. INSERT fails. The statement has been terminated. (Microsoft SQL Server, Error: 515)


Could someone help me resolve this?

Thank you!

4

4 回答 4

4

在左侧选项卡上选择常规并输入所有者的值。

于 2013-11-12T07:58:09.627 回答
1

尝试手动设置所有者:

update msdb.dbo.sysjobs_view 
set owner_sid=suser_sid('<username or groupname here>',0) 
where name = 'jobname'
于 2013-11-12T07:55:43.590 回答
0

如果您使用 vpn 访问您的服务器但您不是域的一部分,它可能会将您本地计算机的域放入然后失败。这就是发生在我身上的事情。我浏览了一个所有者并从服务器的域中选择了一个,这修复了它。

于 2014-10-09T18:19:14.340 回答
0

作业所有者可能手动设置为 [sa],而它需要是 sa​​(或者它是由“浏览”功能设置时。

于 2014-02-12T21:27:27.917 回答