﻿<?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>Seçili Veritabanındaki Tüm Prosedürleri Kaldıran Cursor &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/secili-veritabanindaki-tum-prosedurleri-kaldiran-cursor/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Tue, 22 Feb 2022 17:04:27 +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 Seçili Veritabanındaki Tüm Prosedürleri Kaldıran Cursor</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-secili-veritabanindaki-tum-prosedurleri-kaldiran-cursor</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Mon, 22 Jul 2019 05:53:42 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Seçili Veritabanındaki Tüm Prosedürleri Kaldıran Cursor]]></category>
		<category><![CDATA[SQL Server’da Seçili Veritabanındaki Tüm Prosedürleri Kaldıran Cursor]]></category>
		<category><![CDATA[Tüm Prosedürleri Kaldıran Cursor]]></category>
		<guid isPermaLink="false">http://sqlserveregitimleri.com/?p=6992</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda sizlere SQL Server&#8217;da seçili veritabanındaki tüm prosedürlerin Cursor yardımıyla kaldırılması hakkında bilgi vereceğim. SQL Server&#8217;da bazı durumlarda tüm prosedürleri kaldırma ihtiyacınız...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda sizlere SQL Server&#8217;da seçili veritabanındaki tüm prosedürlerin Cursor yardımıyla kaldırılması hakkında bilgi vereceğim.</p>
<p>SQL Server&#8217;da bazı durumlarda tüm prosedürleri kaldırma ihtiyacınız olabilir.</p>
<p>Aşağıdaki sorguyu kullanarak bu işlemi tek seferde çözebilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">DECLARE @name VARCHAR(128);
DECLARE @SQL VARCHAR(254);
SELECT @name =
(
    SELECT TOP 1
           [name]
    FROM sysobjects
    WHERE [type] = 'P'
          AND category = 0
    ORDER BY [name]
);
WHILE @name IS NOT NULL
BEGIN
    SELECT @SQL = 'DROP PROCEDURE [dbo].[' + RTRIM(@name) + ']';
    EXEC (@SQL);
    PRINT 'Kaldırılan Prosedürler : ' + @name;
    SELECT @name =
    (
        SELECT TOP 1
               [name]
        FROM sysobjects
        WHERE [type] = 'P'
              AND category = 0
              AND [name] &gt; @name
        ORDER BY [name]
    );
END;</code></pre>
<p>Sorguyu çalıştırdığınız zaman aşağıdaki gibi bir çıktı göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-6996 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2019/07/sql-serverda-secili-veritabanindaki-tum-prosedurleri-kaldiran-cursor-1.jpg" alt="SQL Server’da Seçili Veritabanındaki Tüm Prosedürleri Kaldıran Cursor" width="700" height="341" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2019/07/sql-serverda-secili-veritabanindaki-tum-prosedurleri-kaldiran-cursor-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2019/07/sql-serverda-secili-veritabanindaki-tum-prosedurleri-kaldiran-cursor-1-315x153.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2019/07/sql-serverda-secili-veritabanindaki-tum-prosedurleri-kaldiran-cursor-1-616x300.jpg 616w, https://sqlserveregitimleri.com/wp-content/uploads/2019/07/sql-serverda-secili-veritabanindaki-tum-prosedurleri-kaldiran-cursor-1-277x135.jpg 277w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere tüm prosedürlerimiz kaldırılmış oldu.</p>
<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"> 345</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
