How to Create a SQL Server Agent Job that Calls Another Job - SQL Server DBA Tutorial

In this video you will learn step by step process of creating SQL Server agent job that calls another job on same SQL Server instance or remote SQL Server using T-SQL Script. It also explains what is required to connect to remote SQL Server in this scenario (Creating Linked Server) or using power-shell script to connect to remote SQL Server. It also provides a resolution to an error " The server doesn't allow RPC connection or RPC is disabled on the server"

Script to call SQL Server Agent Job inside another SQL Server Agent Job from Same Server or other instance.

--Call another job on same SQL Server
USE msdb 
GO
EXEC dbo.sp_start_job N'BackupAlldb' 
GO

--Call another job on different SQL Server 
-- Requires Linked server 
EXEC [TBSSQL\SQLPROD].[msdb].dbo.sp_start_job N'BackupAlldb'


How to Call SQL Server Agent Job/s from Another SQL Server Agent Job

19 comments:

  1. Replies
    1. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.
      Tangki Panel
      Tangki Fiberglass
      Jual Septic Tank
      Mesin RO

      Tangki Fiberglass

      Delete
  2. I am jovial you take pride in what you write. It makes you stand way out from many other writers that can not push high-quality content like you. tìm việc làm partime 365

    ReplyDelete
  3. I need to to thank you for ones time for this particularly fantastic read!! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site. digital literacy

    ReplyDelete
  4. This is the last point of job application rejection, and it is a general issue throughout the current job-seeking world: personal confidence. Job seeking in itself is a job, and it is a tough one. Hr recruitment Companies in India

    ReplyDelete
  5. Craigslist has built a reputation as a great resource of free and low-cost classifieds online, especially among company recruiters operating with limited budgets. But as the years pass, it's become clear that relying on Craigslist job posting

    ReplyDelete
  6. It is truly a well-researched content and excellent wording. I got so engaged in this material that I couldn’t wait reading. I am impressed with your work and skill. Thanks. job posting site

    ReplyDelete
  7. All your hard work is much appreciated. Nobody can stop to admire you. Lots of appreciation. job posting

    ReplyDelete
  8. Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. job posting site

    ReplyDelete
  9. Go to your favourite jobs board, keeping the title/skills consistent and setting the pay level to zero. Then open the geographic search criteria until the result shows at least 20 jobs. How to design Cover letter

    ReplyDelete
  10. Nice post. I was checking constantly this blog and I am impressed! Extremely helpful information specially the last part I care for such info a lot. I was seeking this particular information for a very long time. Thank you and good luck. 10 likes free trial

    ReplyDelete
  11. hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. buy instagram followers views and likes

    ReplyDelete
  12. This is why I have always recommended that a person accept a job offer only if they are willing to perform the job tasks exactly as required now and not for the hope of something changing in the near future, workplace diversity Singapore or holding onto a belief that they can advance beyond this current position any time soon. Why?

    ReplyDelete
  13. This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. https://europa-road.eu/hu/nemzetkozi-szallitmanyozas-allas.php

    ReplyDelete
  14. It is not a very popular type of youtube video, so I advise you to buy some youtube views from this site https://soclikes.com/

    ReplyDelete
  15. You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. poker88

    ReplyDelete