Solved

job faile for replication

Posted on 2010-11-24
2
450 Views
Last Modified: 2012-05-10
Expert,

Is anyone know this error to fix? This is on SQL server 2005, the job seems to run replication then got this error.
Message :
Executed as user: XYZ\SQLServer. SQLServerAgent Error: Request to stop job Replication(from User XYZ\SQLServer) refused because the job is not currently running. [SQLSTATE 42000] (Error 22022).  The step failed.
0
Comment
Question by:yrcdba7
2 Comments
 
LVL 39

Expert Comment

by:lcohan
ID: 34209198
You cannot stop a SQL Job that is not running. If you do this from Mamagement studio, please refresh SQL jobs list and see the status or use Job Activity Monitor to see status/stop/start jobs.
0
 
LVL 10

Accepted Solution

by:
TAB8 earned 500 total points
ID: 34223059
I would say the job is not running ie if its merge replication the job will run on a schedule that you specify and may run fir a very short time depending on activity..

But

In this case,  we can find out whether it is running or not
 by using the following statement, and make sure that there is no any related running job.    
USE msdb    GO    EXEC DBO.SP_HELP_JOB    
 @execution_status=1,      @enabled=1

 For more information about sp_help_job, please see the following link:http://msdn.microsoft.com/en-us/library/ms186722.aspx If you have any more questions, please feel free to let me know.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now