﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQL Server Agent Son Çalışma &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-server-agent-son-calisma/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Tue, 14 Feb 2023 09:46:21 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>SQL Server&#8217;da SQL Server Agent&#8217;ın Son Çalıştırma Tarihi ve Saatini Listelemek</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-sql-server-agentin-son-calistirma-tarihi-ve-saatini-listelemek</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Tue, 14 Feb 2023 09:46:21 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Agent Listeleme]]></category>
		<category><![CDATA[SQL Server Agent Son Çalışma]]></category>
		<category><![CDATA[SQL Server'da Agent]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=15204</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server’da SQL Server Agent&#8217;ın son çalıştırma tarihi ve saatini listelemek ile ilgili bilgi vermeye çalışacağım. SQL Server&#8217;da bazı durumlarda SQL...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server’da SQL Server Agent&#8217;ın son çalıştırma tarihi ve saatini listelemek ile ilgili bilgi vermeye çalışacağım.</p>
<p>SQL Server&#8217;da bazı durumlarda SQL Server Agent&#8217;ın son çalıştırma tarihi ve saatini listelemek isteyebilirsiniz.</p>
<p>Aşağıdaki kodu kullanarak siz de bu işlemi rahatlıkla yapabilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">select j.job_id,
       j.name,
       js.step_id,
       js.step_name,
       last_run_outcome = case
                              when js.last_run_outcome = 0 then
                                  'Failed'
                              when js.last_run_outcome = 1 then
                                  'Succeeded'
                              when js.last_run_outcome = 2 then
                                  'Retry'
                              when js.last_run_outcome = 3 then
                                  'Canceled'
                              else
                                  'Unknown'
                          end,
       last_run_datetime = msdb.dbo.agent_datetime(   case
                                                          when js.last_run_date = 0 then
                                                              NULL
                                                          else
                                                              js.last_run_date
                                                      end,
                                                      case
                                                          when js.last_run_time = 0 then
                                                              NULL
                                                          else
                                                              js.last_run_time
                                                      end
                                                  )
from msdb.dbo.sysjobs j
    inner join msdb.dbo.sysjobsteps js
        on j.job_id = js.job_id;</code></pre>
<p>Herkese çalışma hayatında ve yaşamında başarılar kolaylıklar.</p>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 166</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
