Solved

job faile for replication

Posted on 2010-11-24
2
454 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 40

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Table where row act as column 11 69
SSIS GUID Variable 2 32
add stored proc on publlication 4 20
SQL query 7 14
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

756 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