Quantcast
Channel: Question and Answer » jobs
Browsing all 32 articles
Browse latest View live

Why is subshell created by background control operator (&) not displayed...

I understand that when I run exit it terminates my current shell because exit command run in the same shell. I also understand that when I run exit & then original shell will not terminate because...

View Article


SQL Agent Proxy – writing to logs is only allowed to jobs that are owned by...

I have a Windows 2012 RS and SQL Server 2012 Enterprise Edition. I have SQL Server maintenance jobs from ola.hallengren.com and the owner of the jobs were sa. The security team decided to change that...

View Article


Need Script to find SP Invoked in SQL

I’m unable to track a stored procedure that is executing every morning 7 AM. Is there is any script to check that which job invokes that particular SP?

View Article

Cron Jobs Centos7 [on hold]

I’ve got a simple script that compresses the a file and then uploads it to google drive. I’d like to set this as a cron job every day at 6:30am. I’ve tried the following below after running the command...

View Article

Cron Jobs Centos7 [closed]

I’ve got a simple script that compresses the a file and then uploads it to google drive. I’d like to set this as a cron job every day at 6:30am. I’ve tried the following below after running the command...

View Article


Image may be NSFW.
Clik here to view.

Start failed for Job in SQL Server Agent

I am trying to schedule a job which executes stored procedure but it is failing. DECLARE @return_value int EXEC @return_value = [dbo].[sp_WarehouseAttendance_New] SELECT 'Return Value' = @return_value...

View Article

Get Job step run for all jobs and job steps using TSQL

I was wondering if there is an easy way to check the “Run as” value for each job step using TSQL code instead of opening every job on the server and each individual step? I cannot figure out where to...

View Article

Checking Job Statuses As A Daily Task

I’ve been thinking about this a lot recently: Is there a consensus as to how to check SQL Server Agent jobs have run correctly? Some advice seems to be alerting the operator on failure and addressing...

View Article


Maintenance Plan job failing with access denied for NT SERVICESQLSERVERAGENT

I used the Maintenance Plan Wizard under SQL Server 2014 to create a simple maintenance plan that once a week: Check Database Integrity including indexes Rebuild Indexes Clean Up History When the job I...

View Article


Similar Jobs in two different Servers

Can anyone just help me with a script to find similar SQL jobs in two different instances/servers?

View Article

Completion of SQL Job triggers start of job on a different SQL Server

I want the completion of a SQL Server agent job to trigger the start of a job on another server. More specifically, I want my SSRS server to email a subscription report whenever an FTP/Import job...

View Article

Create a job that sets Auto Update Statistics on

I am using SQL Server 2012. The vendor wants Auto Update Statistics set to false, but my boss wants it set to true. If I set it to true, after a while it goes back to false by itself. I think the...

View Article
Browsing all 32 articles
Browse latest View live