<?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>Microsoft.SqlServer.Smo arşivleri - Yunus Emre Araç</title>
	<atom:link href="https://www.yunusemrearac.com/tag/microsoft-sqlserver-smo/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.yunusemrearac.com/tag/microsoft-sqlserver-smo/</link>
	<description>SharePoint Consultant &#124; Microsoft 365 &#124; SharePoint Server &#38; Online</description>
	<lastBuildDate>Thu, 02 Apr 2020 16:38:47 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://www.yunusemrearac.com/wp-content/uploads/2014/11/MetroUI_VisualStudio_2012-545c8860_site_icon-32x32.png</url>
	<title>Microsoft.SqlServer.Smo arşivleri - Yunus Emre Araç</title>
	<link>https://www.yunusemrearac.com/tag/microsoft-sqlserver-smo/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">67294213</site>	<item>
		<title>C# Kodu ile Sql Server Veritabanı Yedeğini Geri Yükleme</title>
		<link>https://www.yunusemrearac.com/2020/04/02/c-kodu-ile-sql-server-veritabani-yedegini-geri-yukleme/</link>
					<comments>https://www.yunusemrearac.com/2020/04/02/c-kodu-ile-sql-server-veritabani-yedegini-geri-yukleme/#comments</comments>
		
		<dc:creator><![CDATA[yunusemrearac]]></dc:creator>
		<pubDate>Thu, 02 Apr 2020 16:38:47 +0000</pubDate>
				<category><![CDATA[Windows Form - C#]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft.SqlServer.ConnectionInfo]]></category>
		<category><![CDATA[Microsoft.SqlServer.Smo]]></category>
		<category><![CDATA[Microsoft.SqlServer.SmoExtended]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Sql Server]]></category>
		<category><![CDATA[Teknoloji]]></category>
		<category><![CDATA[Veritabanı]]></category>
		<guid isPermaLink="false">http://yunusemrearac.com/?p=2438</guid>

					<description><![CDATA[<p>Merhaba arkadaşlar bugün sizlere C# kodu ile bilgisayarımızda yer alan veritabanının &#8220;.bak&#8221; uzantılı yedek dosyasını nasıl sql server tarafına geri (restore) yükleyeceğimizden bahsedeceğim. Daha önceki&#8230;</p>
<p>The post <a href="https://www.yunusemrearac.com/2020/04/02/c-kodu-ile-sql-server-veritabani-yedegini-geri-yukleme/">C# Kodu ile Sql Server Veritabanı Yedeğini Geri Yükleme</a> appeared first on <a href="https://www.yunusemrearac.com">Yunus Emre Araç</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Merhaba arkadaşlar bugün sizlere C# kodu ile bilgisayarımızda yer alan veritabanının &#8220;.bak&#8221; uzantılı yedek dosyasını nasıl sql server tarafına geri (restore) yükleyeceğimizden bahsedeceğim.</p>
<p>Daha önceki yazımda da <a href="http://yunusemrearac.com/2015/10/16/c-kodu-ile-sql-server-veritabani-yedegi-alma/" target="_blank" rel="noopener noreferrer">C# kodu ile Sql Server Veritabanı Yedeği Alma</a> konusunu anlatmıştım.</p>
<p><strong>NOT:</strong> Projenize <strong>&#8220;Microsoft.SqlServer.ConnectionInfo&#8221;, &#8220;Microsoft.SqlServer.Smo&#8221;, &#8220;Microsoft.SqlServer.SmoExtended&#8221;</strong> referanslarını eklemeniz gerekmektedir.</p>
<p>Bunun için aşağıdaki C# kodunu bilgileri doldurarak kullanabilirsiniz.</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">Restore restore = new Restore();
restore.Database = "DatabaseFileName";
restore.Action = RestoreActionType.Database;

restore.Devices.AddDevice(@"DatabaseFilePathAndFileName", DeviceType.File);

restore.ReplaceDatabase = true;
restore.NoRecovery = true;

Server sqlServer = new Server("ServerName");
        
restore.SqlRestore(sqlServer);</pre><p></p>
<p>Yukarıdaki kod parçacığında aşağıdaki alanları doğru şekilde doldurursanız sorunsuz bir şekilde istediğiniz veri tabanının yedeğini geri yükleyebilirsiniz.</p>
<p><strong>DatabaseFileName</strong>: Veritabanı yedek dosyasının uzantısıyla birlikte olacak şekilde adı. (ÖR: yunusemrearacDB.bak)</p>
<p><strong>DatabaseFilePathAndFileName</strong>: Veritabanı yedeğinin bulunduğu dosya dizini ve dosya uzantısıyla birlikte adı. (ÖR: D:\yunusemrearacDB.bak)</p>
<p><strong>ServerName</strong>: Geri yükleme işlemini yapacağınız sql server adı.</p>
<p>Gerekli bilgileri doğru şekilde girdikten sonra istediğiniz gibi veritabanı restore (geri yükleme) işlemini yapabilirsiniz.</p>
<p>The post <a href="https://www.yunusemrearac.com/2020/04/02/c-kodu-ile-sql-server-veritabani-yedegini-geri-yukleme/">C# Kodu ile Sql Server Veritabanı Yedeğini Geri Yükleme</a> appeared first on <a href="https://www.yunusemrearac.com">Yunus Emre Araç</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.yunusemrearac.com/2020/04/02/c-kodu-ile-sql-server-veritabani-yedegini-geri-yukleme/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2438</post-id>	</item>
	</channel>
</rss>
