Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
0341
Starting Member
21 Posts |
Posted - 2007-09-25 : 11:26:19
|
When I try to create a scheduled job using a script I get the following error message. I am an SA. Not sure why this is happening. It happens when I script some jobs from another server by not others on the same server. Server: Msg 515, Level 16, State 2, Procedure sp_add_job, Line 105Cannot insert the value NULL into column 'owner_sid', table 'msdb.dbo.sysjobs'; column does not allow nulls. INSERT fails.The statement has been terminated.-Phil |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-09-25 : 11:35:07
|
The error message is very informative.Why can't you insert NULL value in column owner_sid in table msdb.dbo.sysjobs?Because the column do not accept NULL values... E 12°55'05.25"N 56°04'39.16" |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-09-25 : 23:29:05
|
You can copy job in dts. |
|
|
baghul
Starting Member
2 Posts |
Posted - 2010-03-03 : 15:28:21
|
I have seen this error also when I am moving jobs from one server to another one.You have to make sure:1. The original job owner exists in the target server2. If you have a different user in the target server, replace the following,@owner_login_name=N'old_owner' to @owner_login_name=N'new_owner'Kash |
|
|
|
|
|