SQL Server Jobs Execution Status

120
8244

Friends,

When ever you are working with sql server agent and dealing with lots of jobs then you need the below given query. The query given below will give the status of each and every job. This also c an be provided as VALUE ADD(Which will impress client) to client.

Generally we configure to E-Mail notification which says whether a JOB is successful or failed but the problem is “You have to check thousands of mails to get status of all jobs that run in a day”. Using the below query we can get the info about all the jobs and if you can provide a GUI for the same then it will become a VALUE ADD to client ..

SELECT [JobName] = JOB.name,
[Step] = HISTORY.step_id,
[StepName] = HISTORY.step_name,
[Message] = HISTORY.message,
[Status] = CASE WHEN HISTORY.run_status = 0 THEN ‘Failed’
WHEN HISTORY.run_status = 1 THEN ‘Succeeded’
WHEN HISTORY.run_status = 2 THEN ‘Retry’
WHEN HISTORY.run_status = 3 THEN ‘Canceled’
END,
[RunDate] = HISTORY.run_date,
[RunTime] = HISTORY.run_time,
[Duration] = HISTORY.run_duration
FROM msdb..sysjobs JOB
INNER JOIN msdb..sysjobhistory HISTORY ON HISTORY.job_id = JOB.job_id
WHERE HISTORY.run_date=convert(varchar,getdate(),112)
ORDER BY HISTORY.run_date, HISTORY.run_time

Try running this query and see the result. Remember that you need to run the query in MSDB database.

This is it .. As simple as this .. Hope this works .. 😛

Regards,
Roopesh Babu V

120 COMMENTS

  1. займ на карту срочно
    [url=https://tc-online.ru/]новые займы на карту[/url]
    займ на карту без проверки истории

  2. Aviator Spribe [url=https://sites.google.com/view/aviator-spribe/]Слот-машина Aviator Spribe[/url] – онлайн-игра, которая предлагает любителям азартных игр испытать свою удачу и заработать деньги. Она разработана компанией Spribe, которая занимается на разработке различных игровых автоматов и онлайн-игр.
    Участники могут играть в Aviator Spribe [url=https://sites.google.com/view/krash-aviator-spribe/]aviator[/url] со своих устройств, включая компьютеры, планшеты и мобильные телефоны. Игра осуществляется на экране, где есть поле с бегущим по нему самолетом. Игроки ставят деньги на определенное время, и если самолет перелетает нужное расстояние, они выигрывают.
    Главной особенностью игры Aviator Spribe является то, что она работает на базе технологии blockchain. Это означает, что все транзакции и данные сохраняются в распределенной базе данных, что обеспечивает безопасность и прозрачность игры.
    В дополнение, Aviator Spribe имеет несколько уровней сложности, что делает ее привлекательной для участников разного опыта игры. Новички могут выбрать менее сложный уровень и по мере переходить на сложный, когда будут готовы к этому.
    Некоторые игроки могут считать, что Aviator Spribe похожа на традиционные игровые автоматы, однако она предлагает более увлекательный и разнообразный геймплей. Кроме того, игра имеет отличную графику и звуковое оформление, что добавляет еще больше атмосферы.
    Некоторые люди могут сомневаться в безопасности игры на деньги, однако благодаря технологии blockchain и наличию лицензии у Spribe, игроки могут быть уверены в том, что их личные данные и финансовые средства хранятся под надежной защитой.
    В целом, Aviator Spribe – это интересная и захватывающая игра, которая может принести игрокам радость от игры, но и реальные денежные выигрыши. Компания Spribe продолжает совершенствовать эту игру, что делает ее еще более привлекательной для участников со всего мира.

  3. [url=https://blackcash.re]печати изготовление[/url]
    схемы заработка в интернете

    [url=https://xn--24-7-43d1co4aibjp.xn--p1ai]регистрация[/url]

    [url=https://p159.ru]регистрация по месту пребывания[/url]
    [url=https://xn—-7sbb3aicjpdbegbms.xn--p1ai]сделать временную регистрацию в москве[/url]

    [url=https://xn—24-2ddbmkpadkbhesjze1n.xn--p1ai]купить временную регистрацию в москве[/url]

    [url=https://p159.ru]документы для временной прописки[/url]
    [url=https://xn—-7sbb3aicjpdbegbms.xn--p1ai]сколько делается прописка[/url]

  4. steambalance обман на деньги
    [url=https://steambalance.ru/]steambalance мошенники кидки[/url]
    порно сайт для геев steambalance.ru
    [url=https://steamstar.ru]steamstar.ru кидают на стим баланс[/url]
    steambalance обман на деньги

  5. Copyright ©  2010-2023 Freepik Company S.L. Alle rechten voorbehouden Dankzij de samenwerking tussen Pokeren.nl en Pokerwinkel.nl hebben we al diverse mooie prijzen mogen weggeven tijdens de finales van onze eigen Poker Series waaronder o.a. een hele mooie pokerset! Als je vóór 16:30 uur een bestelling plaats wordt deze dezelfde dag nog verzonden. Verzending is bovendien gratis in heel Nederland en België bij orders van €50 of meer. Na afspraak ophalen in het warenhuis in Waalre is ook mogelijk.  You are using an outdated browser. Please upgrade your browser to improve your experience. Kenmerken: Voldoende ruimte (een goede tafel en voldoende stoelen). Er zijn ook allerlei pokertafels op kleden beschikbaar om een gewone tafel makkelijk om te toveren tot een pokertafel.
    http://dcelec.co.kr/uni/bbs/board.php?bo_table=free&wr_id=149535
    iDEAL casino’s zijn ook nog eens erg veilig. Helemaal als je er een van onze lijst iDEAL casino 2023 uitzoekt. Betalen met iDEAL werkt precies hetzelfde als bij een ‘gewone’ online aankoop en we zorgen er met onze lijst van casino’s ook nog eens voor dat je als speler in een betrouwbaar casino iDEAL Nederland terecht komt. iDEAL is al jaren de meest betrouwbare en populaire online betaalmethode in Nederland en voor online casino’s is dit helemaal niet anders. Een iDEAL betaling is immers heel vertrouwd voor de meeste Nederlanders. Wij gingen voor jou op onderzoek uit en zochten de beste betrouwbare online casino’s met iDEAL voor je uit!  iDEAL is al jaren de meest betrouwbare en populaire online betaalmethode in Nederland en voor online casino’s is dit helemaal niet anders. Een iDEAL betaling is immers heel vertrouwd voor de meeste Nederlanders. Wij gingen voor jou op onderzoek uit en zochten de beste betrouwbare online casino’s met iDEAL voor je uit! 

  6. HollywoodCasino has all your favorite free slots online including 88 Fortunes, Lady Robin Hood, and Super Jackpot party, along with special promotions each month! Now, with the quickly developing online casino market, you can experience all the benefits playing slots online brings compared to traditional casinos. This means that you can earn real cash while having loads of fun, play your favorite games no matter where you are, claim various bonuses and rewards, have a chance to win huge progressive jackpots, and choose from hundreds of different slot types and genres. Best of all, playing online slots for real money in the USA has never been easier thanks to a simple registration process and a variety of banking options. Slots.lv: If extending your playing money as much as possible sounds good, then Slots.lv has the perfect slots bonus for you. You can claim up to $7,500 in bonus funds on your first few deposits that you can use to play online slots. Our top game here was 777 Deluxe.
    http://ivimall.com/1068523725/bbs/board.php?bo_table=free&wr_id=424118
    27.04.2023 Betsson has become a reputable casino across Europe. They have plenty of slots as well as popular high-limit games like blackjack, roulette and baccarat. Table limits are also higher than those at other casinos. For example, you can play blackjack at $ € 5,000 per hand if you wish. The casino also boasts a fantastic live casino that lets you play with live dealers in real time. Shimon Akad, Chief Operating Officer at Playtech, added: “Betsson Group is a highly respected operator within the online gambling industry, and we are very proud to be working with them. Betsson Group already offers an excellent player experience to its significant international audiences and we are confident that Playtech products and innovations will only serve to enhance this experience further. With a continued focus on safer gambling, Playtech’s core strategy is to offer long-term sustainability and innovation for operators and a safe, enjoyable environment for players.”

  7. Русский военный корабль, иди на хуй
    MAIL@AUTHOR24.US [url=http://author24.us]русский корабль иди нахуй!!![/url]
    Русский военный корабль, иди на хуй
    Русские, что с Ебалом?
    Путин Хуйло!!!Ла-ла-ла-ла!!!
    Русские, что с Ебалом?
    Путин Хуйло!!!Ла-ла-ла-ла!!!
    Русские, что с Ебалом?
    Путин Хуйло!!!Ла-ла-ла-ла!!!
    русский Военный Корабль, Иди Нахуй!
    Русские, что с Ебалом?
    Русские, что с Ебалом?
    русский корабль иди нахуй!!!
    русский Военный Корабль, Иди Нахуй!
    Русский военный корабль, иди на хуй

  8. Sex toys https://self-lover.store/ have become an integral part of modern intimate life for many people. Their variety strikes the imagination. In intimate goods stores you can find many different types and models that help diversify your sex life and give pleasure.

  9. reduslim site oficial [url=https://comprarcialis5mg.org/reduslim/]reduslim[/url] mercadona reduslim en farmacias
    reduslim es un timo [url=https://comprarcialis5mg.org/reduslim-kaufen/]reduslim[/url] reduslim farmacias zaragoza
    cialis 5mg prezzo [url=https://comprarcialis5mg.org/it/cialis-5mg-prezzo/]cialis[/url] cialis 5mg prezzo
    reduslim y diabetes [url=https://comprarcialis5mg.org/]comprar cialis[/url] reduslim sara carbonero es verdad

    [url=https://www.uilalessandria.org/comunicati-stampa-uiltucs/item/113-documento-direzione-nazionale-uilm-congresso-2014.html?start=0]reduslim gotas[/url] 02dacaf

  10. Aby kasyno było legalne w świetle polskiego prawa musi posiadać licencję Ministerstwa Finansów. Na liście legalnych figuruje tylko jedno, jest to Total Casino prowadzone przez Totalizator Sportowy. Bo widocznie niektórzy nie kochają tak emoji i średnia ocena spadła 😞😞 Chatrandom buduje coś, co zmieni świat, a jako użytkownik jest to część tego, co budujemy. Życzę dobrej zabawy i niezapomnianych wrażeń podczas korzystania z naszej strony! Jako alternatywę dla Chatrandom, przedstawiamy Wam platformę jako całkowicie darmowy okres losowy: strona, która stała się nieodzownym adresem w świecie Internetu i stała się przypadkowym czatem, nadal imponuje ludziom z wielką determinacją. Czat ruletka z laskami SEX PORNO XXX
    http://xn--2y1by25awlasel42e.com/bbs/board.php?bo_table=free&wr_id=10752
    2. STAWIANIE — jeśli w danej rundzie licytacji nie został postawiony żaden zakład, gdy nadejdzie jego kolej, gracz może pierwszy postawić zakład. Jeśli to uczyni, kolejny gracz w kierunku zgodnym z ruchem wskazówek zegara (i każdy następny) może spasować, przebić lub sprawdzić. Poker turniejowy: W turniejach pokerowych każdy gracz wpłaca określoną kwotę (wpisowe) i otrzymuje określoną liczbę żetonów. Każdy uczestnik musi zapłacić takie samo wpisowe i otrzymuje taką samą liczbę żetonów startowych. Turniej jest rozgrywany do momentu, gdy jeden gracz zgarnie wszystkie żetony przeciwników. Poker jest jedną z najbardziej popularnych gier karcianych na świecie. Jest to gra, która pozwala graczom na rywalizację, a jednocześnie dostarcza im wielu emocji i rozrywki. Gra w pokera jest wspierana przez wiele zawodowych turniejów i innych imprez. Organizowane są one na całym świecie i pozwalają graczom na zarabianie dużych pieniędzy.

  11. reduslim farmacia precio [url=https://comprarcialis5mg.org/reduslim/]reduslim[/url] pagina oficial de reduslim
    reduslim opiniones negativas [url=https://comprarcialis5mg.org/reduslim-kaufen/]reduslim[/url] reduslim santiago segura
    cialis [url=https://comprarcialis5mg.org/it/cialis-5mg-prezzo/]cialis 5 mg[/url] cialis
    reduslim belГ©n esteban [url=https://comprarcialis5mg.org/]comprar cialis 5 mg[/url] curso reduslim

    [url=https://www.superdiscountmattresses.com/three-amazing-mattresses/#comment-41820]reduslim que es[/url] d682fe1

  12. [url=https://pharmacyreview.best/#]canadian pharmacy 1 internet online drugstore[/url] pharmacy com canada

  13. comprar carta de condução, comprar carta de condução ,comprar carta de condução verdadeira ,comprar carta de condução portugal ,comprar carta de conducao, comprar carta de condução preço, comprar carta de condução urgent ,comprar carta condução
    comprar carta de condução online ,comprar carta de mota
    como comprar a carta de condução.
    https://cartadeconducaoonline.com/

  14. köpa körkort, ta körkort i polen, köpa körkort utomlands, köpa svenskt körkort ,ta körkort utomlands, fake körkort, köpa falskt körkort, köpa körkort rumänien, utländskt körkort, körkort online, körkort bild
    körkort sverige ,svensk körkort ,köpa körkort i sverige ,falskt körkort ,köpa ett körkort, köp svenskt körkort ,kan man köpa körkort
    fejk körkort köra med utländskt körkort i sverige
    https://kopa-giltigtkorkort.com/

  15. ivermectin for sale [url=https://stromectolonline.pro/#]ivermectin tablets order[/url] ivermectin online

  16. ivermectin brand name [url=https://stromectolonline.pro/#]oral ivermectin cost[/url] buy ivermectin canada

  17. buy cheap zithromax online [url=http://azithromycin.men/#]how to get zithromax online[/url] buy zithromax

  18. mexican rx online [url=https://mexicanpharmacy.guru/#]purple pharmacy mexico price list[/url] mexico drug stores pharmacies

  19. $200 No Deposit Codes – Great Casino and Betting Platform Ümit Özdağ’dan Sessiz İstila ve sığınmacılar için yeni açıklama: Türkiye’yi ikiye bölecek hatta yerleştirildiler When you do that, a new step of human verification begins. You’ll find a short survey here, which you must complete because we need to be sure that you are a real person and not a scammer. Also, if you don’t complete this step, you won’t get the Mandarin Palace Casino $100 no deposit bonus codes. Key words: free spins, no deposit bonus, gratis spins, online casino, free play, scratch cards, free bonus, jackpots, sportsbook, poker, bingo, mobile casino, live dealer. Mandarin Palace Casino uses Bet On Soft software.  You will enjoy the high quality of their great software. You will also enjoy the great games that come in 3D graphics. You will like their rich design. You will find a range of great innovative games at this online casino.
    http://insehub.home1.co.kr/bbs/board.php?bo_table=free&wr_id=131142
    Silver Sands it’s owned by Paxson Marketing Ltd., powered by Realtime Gaming. . Players from Ukraine are welcome to register and play. It is common for online casinos to offer no deposit bonuses, which allow players to take advantage of free rewards without making a deposit. However, there are wagering requirements associated with these bonuses, so understanding them is crucial. In this article, we explore the significance of wagering requirements for no deposit bonuses in detail. Silver Sands it’s owned by Paxson Marketing Ltd., powered by Realtime Gaming. . Players from Ukraine are welcome to register and play. Trabzon’da ‘şampiyonluk’ biletleri karaborsaya düştü: En ucuzu 30 bin TL! This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

8 + 1 =