Solved

job faile for replication

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
set default date format in mssql to mm/dd/yyyy 22 68
email the result out from a T-SQL queries 29 64
Can someone plz fix this..getting an error 3 18
Sql Join Problem 2 33
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
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

867 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

17 Experts available now in Live!

Get 1:1 Help Now