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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Job failure

Author  Topic 

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2008-11-09 : 18:03:35
I am receiving one job failure for the database. On verification, I found that the job failed due to the following reason.


Executed as user: NT AUTHORITY\SYSTEM. Cannot insert the value NULL into column 'owner', table 'tempdb.dbo.#spdbdesc___________________________________________________________________________________________________________000100004792'; column does not allow nulls. INSERT fails. [SQLSTATE 23000] (Error 515) The statement has been terminated. [SQLSTATE 01000] (Error 3621). The step failed.

This particular job is used to get free sapce on drives. Please suggest

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-11-09 : 18:09:26
Does database has valid owner?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-11-09 : 18:26:14
The owner doesn't have anything to do with that error.

laddu, your code is trying to insert a NULL value into a column that does not allow it. Either modify the code to pass a value to it or modify the column so that it allows nulls.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2008-11-09 : 20:23:21
Thanks Kizer!
Go to Top of Page
   

- Advertisement -