Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

job faile for replication

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
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 ?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

856 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