SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Server Agent jobs


SQL Server Agent jobs

Author
Message
Niyala
Niyala
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1104 Visits: 467
Hi all,

I recently installed ms sql server 2008 64 bit on some machines. I then reached a point where I have to create jobs and automate some administrative tasks. We have previously written T-SQL scripts which I now want to use to automate tasks.

I did the following:

I created a new job, gave job name, from the list I chose T-SQL script, created a new step, opened the T-SQL script from file location on the local machine. That was done.

I am a member of sys admin. When I run the job I get the following error message:

....
can not insert the value NULL into column 'owner_sid', 'table msdb.dbo.sysjobs' column does not allow NULLS. Insert fails.
....

I was really wondering if anyone can give a hint on how to solve this problem.

Many thanks indeed in advance.


Regards

Niyala
Matt S.-364742
Matt S.-364742
Valued Member
Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)

Group: General Forum Members
Points: 71 Visits: 2810
I've run into this before (but with 2005) and had to manually edit the job script. In a nutshell the line breaks don't occur as you'd expect so I went through and added the line breaks as needed.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search