Quantcast
Channel: Question and Answer » jobs
Browsing index pages (32 articles)

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


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


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

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

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


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

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

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


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


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

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

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

Image may be NSFW.
Clik here to view.

What events cause each run_status code to appear in sysjobhistory?

We have been asked to report on the health of our SQL jobs. I am having trouble understanding the run_status column in dbo.sysjobhistory. The MSDB page for sysjobhistory gives this description: Status...

View Article


Shell function to check if there is a suspended process that's a child of...

I’d like to add an indicator to my PS1, showing whether there is a process suspended with ctrl+z. In order to do so, I’ll need a function that is able to check for this situation. I’m not even sure...

View Article

SQL Server 2008 job failure

I have a problem on my servers sitting on different domains. I created a linked server that executes successfully and I can list the catalogue but when I schedule a job to execute I get this error:...

View Article


Oracle jobs not running

I have created a new oracle instance and imported a schema consisting of schedular jobs in it. The import was successfull but the jobs are not running automatically. I can run the job manually by exec...

View Article

Backing up SQL Jobs for an Instance

I would like to ensure that I have a backed up copy of every job on my SQL server 2008 R2 instance. Any suggestions?

View Article


How to get that very first programming job? [on hold]

I go to a crappy school, where we spend the first week learning about println and the second week how to create a variable. It feels very ap computer science like. I am about to graduate and I feel...

View Article

Is it possible to add a process to the job list in bash (e.g. to reverse...

If I disown a job in bash and change my mind, can I undo it somehow ? If so, taking it further, is it possible to bring an arbitrary process under job control (an acceptable restriction would be that I...

View Article

Do I need a computer science degree to have a successful career in Linux?...

I recently got a bachelor’s in hospitality management, for 4 years I basically lied to myself thinking thats what I want to study while neglecting my interest in computer science. I’ve been getting to...

View Article
Browsing index pages (32 articles)


Latest Images