Where to look for Agent history in Replication?
In SQL server 2008R2 replication configuration, “agent history cleanup distribution” job by default runs every 10 minutes and deletes any historical data older the 48hrs. If I increase the retention...
View ArticleCan I change “Category_Id”&“Current_execution_status” value in SQL Server...
I have created one job in SQL Server 2012 through SQL Server agent, and that job is not running due to some security privileges. When I am seeing through below SQL query to that my created job...
View ArticleJob is Storing History But 'Include Step Output in History' is not Checked
I have a SQL Server Agent Job. The ‘Include step output in history’ checkbox is unchecked. However, when I right-click oon the job and select ‘View History’, I can see that it is tracking step output....
View Articlestored procedures vs inline SQL in a Job step SQL SERVER 2014
I have created a job with two steps. Step 1 deletes 50000 rows from an error table older than 90 days. Step 2 creates and emails a quick report on the number of new records created in the error table...
View ArticleHow do I pass or fail a job in SQL Server agent based on a return value from...
What do I need to do in order to execute a step in a SQL Server 2012 agent job that returns a bit value back? Basically, I want to fail the job or pass to the next step based on the results from the...
View ArticleJob is Storing History But 'Include Step Output in History' is not Checked
I have a SQL Server Agent Job. The ‘Include step output in history’ checkbox is unchecked. However, when I right-click oon the job and select ‘View History’, I can see that it is tracking step output....
View ArticleAutomating an SQL task on a monthly basis
At the start of each month I have to give a team a copy of the live database which is held in a backup from 1am each morning (D:Backup) – We then copy this database elsewhere onto a dev server and...
View ArticleSQL Server Agent Notification Email if a Step has an error, but the job is...
Is it possible, that I can receive Email from Server Agent, if a step in an Agent has an error, but the Job is successful? In the history, I can see, that for example one Step has an Error, but all...
View ArticlePassing current server name from SQL Server Agent job to PowerShell
I have a SQL Server Agent job that calls a PowerShell script in one step. And I want to pass the SQL server name and the current job-id to my script. With the job-id I have no problems. But with the...
View ArticleSQL Jobs Running – How to Kill
I ran the below query and it shows list of currently running jobs. However, in Activity Monitor none of these are running. How do I verify that these are/are not running? And how do I kill them? select...
View Article
More Pages to Explore .....