﻿<?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’da Veritabanı Restore Etme Tarihini Bulmak &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-serverda-veritabani-restore-etme-tarihini-bulmak/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Thu, 26 Apr 2018 20:22:10 +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 Veritabanı Restore Etme Tarihini Bulmak</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-veritabani-restore-etme-tarihini-bulmak</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Tue, 01 May 2018 11:30:22 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server’da Veritabanı Restore Etme Tarihini Bulmak]]></category>
		<category><![CDATA[Veritabanı Restore Etme Tarihini Bulma Kodları]]></category>
		<category><![CDATA[Veritabanı Restore Etme Tarihini Bulmak]]></category>
		<guid isPermaLink="false">http://sqlserveregitimleri.com/?p=5821</guid>

					<description><![CDATA[Herkese merhaba, Bu kısımda SQL Server’da veritabanını restore etme tarihini bulma kodları olacak. SET NOCOUNT ON SELECT destination_database_name ,bmf.physical_device_name ,restore_date FROM msdb.dbo.restorehistory INNER JOIN msdb.dbo.backupset as...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu kısımda SQL Server’da veritabanını restore etme tarihini bulma kodları olacak.</p>
<pre class="lang:default decode:true ">SET NOCOUNT ON
SELECT
	 destination_database_name
	,bmf.physical_device_name
	,restore_date	
FROM		msdb.dbo.restorehistory
INNER JOIN	msdb.dbo.backupset			as bs	ON bs.backup_set_id	= msdb.dbo.restorehistory.backup_set_id
INNER JOIN	msdb.dbo.backupmediafamily	as bmf	ON bs.media_set_id	= bmf.media_set_id 
WHERE restore_history_id IN 
	(
	SELECT MAX(restore_history_id)
	FROM msdb.dbo.restorehistory
	WHERE restore_type = 'D' 
	AND destination_database_name IN 
		(
		SELECT DISTINCT destination_database_name 
		FROM msdb.dbo.restorehistory
		)
	GROUP BY destination_database_name 
	)
ORDER BY restore_date DESC
SET NOCOUNT OFF
</pre>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 363</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
