﻿<?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 backup &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-server-backup/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Fri, 26 May 2023 21:37:50 +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’da Backup Restore Durum Bilgisini Öğrenmek</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-backup-restore-durum-bilgisini-ogrenmek</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Fri, 26 May 2023 21:32:20 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sql backup]]></category>
		<category><![CDATA[sql server backup]]></category>
		<category><![CDATA[sql server restore]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=16382</guid>

					<description><![CDATA[Herkese merhaba. Bu yazıda SQL Server&#8217;da Backup Restore durum bilgisini öğrenmek ile ilgili bilgi vermeye çalışacağım. SQL Server&#8217;da bazı durumlarda Backup Restore durum bilgisini öğrenmek...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba. Bu yazıda SQL Server&#8217;da Backup Restore durum bilgisini öğrenmek ile ilgili bilgi vermeye çalışacağım.</p>
<p>SQL Server&#8217;da bazı durumlarda Backup Restore durum bilgisini öğrenmek isteyebilirsiniz.</p>
<p>Aşağıdaki kodu kullanarak sizler de bu işlemi rahatlıkla yapabilirsiniz.</p>
<p><strong>Kod 1 </strong></p>
<pre class="line-numbers"><code class="language-sql">SELECT
	session_id AS SPID
   ,command
   ,a.text AS Query
   ,start_time
   ,percent_complete
   ,DATEADD(SECOND, estimated_completion_time / 1000, GETDATE()) AS estimated_completion_time
FROM sys.dm_exec_requests r
CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) a
WHERE r.command IN ('BACKUP DATABASE', 'RESTORE DATABASE')</code></pre>
<p><strong>Kod 2</strong></p>
<pre class="line-numbers"><code class="language-sql">SELECT r.session_id AS [Session_Id],
       r.command AS [command],
       CONVERT(NUMERIC(6, 2), r.percent_complete) AS [% Complete],
       GETDATE() AS [Current Time],
       CONVERT(VARCHAR(20), DATEADD(ms, r.estimated_completion_time, GETDATE()), 20) AS [Estimated Completion Time],
       CONVERT(NUMERIC(32, 2), r.total_elapsed_time / 1000.0 / 60.0) AS [Elapsed Min],
       CONVERT(NUMERIC(32, 2), r.estimated_completion_time / 1000.0 / 60.0) AS [Estimated Min],
       CONVERT(NUMERIC(32, 2), r.estimated_completion_time / 1000.0 / 60.0 / 60.0) AS [Estimated Hours],
       CONVERT(   VARCHAR(1000),
       (
           SELECT SUBSTRING(   TEXT,
                               r.statement_start_offset / 2,
                               CASE
                                   WHEN r.statement_end_offset = -1 THEN
                                       1000
                                   ELSE
                               (r.statement_end_offset - r.statement_start_offset) / 2
                               END
                           ) 'Statement text'
           FROM sys.dm_exec_sql_text(sql_handle)
       )
              )
FROM sys.dm_exec_requests r
WHERE command LIKE 'RESTORE%'
      OR command LIKE 'BACKUP%';</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"> 144</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
