﻿<?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 Stored Prosedüre Null Parametre Göndermek &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-serverda-stored-prosedure-null-parametre-gondermek/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Sat, 08 Jan 2022 13:00:12 +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 Stored Prosedüre Null Parametre Göndermek</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-stored-prosedure-null-parametre-gondermek</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Wed, 22 Jan 2020 10:50:29 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server’da Stored Prosedür]]></category>
		<category><![CDATA[SQL Server’da Stored Prosedüre Null Parametre Göndermek]]></category>
		<category><![CDATA[Stored Prosedüre Null Parametre Göndermek]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=9094</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server’da stored prosedüre null parametre göndermek hakkında bilgi vereceğim. SQL Server&#8217;da bazı durumlarda stored prosedürünüze null parametre gönderme ihtiyacınız olabilir....]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server’da stored prosedüre null parametre göndermek hakkında bilgi vereceğim.</p>
<p>SQL Server&#8217;da bazı durumlarda stored prosedürünüze null parametre gönderme ihtiyacınız olabilir.</p>
<p>Aşağıdaki kod yardımıyla bu işlemi rahatlıkla yapabilirsiniz. İşlemi Northwind veritabanını kullanarak yaptım.</p>
<pre class="line-numbers"><code class="language-sql">--Prosedür oluşturulması 

CREATE PROC KategoriAdiGetir
(@KategoriID INT = NULL)
AS
BEGIN
    IF (@KategoriID IS NULL)
    BEGIN
        SELECT CategoryName AS KategoriAdi
        FROM dbo.Categories;
    END;
    ELSE
    BEGIN
        SELECT CategoryName AS KategoriAdi
        FROM dbo.Categories
        WHERE CategoryID = @KategoriID;
    END;
END;

--Kullanımı --Null gönderince tüm kategoriler geliyor 

EXEC dbo.KategoriAdiGeti @KategoriID = NULL; -- int 

--Kategori ID değeri belirtince o kategori id değerine ait kategori adı geliyor 

EXEC dbo.KategoriAdiGeti @KategoriID = 1;</code></pre>
<p>Prosedürü oluşturup çalıştırdığınızda aşağıdaki gibi bir sonuç alacaksınız.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-9096 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2020/01/sql-serverda-stored-prosedure-null-parametre-gondermek-1.jpg" alt="SQL Server’da Stored Prosedüre Null Parametre Göndermek" width="700" height="501" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2020/01/sql-serverda-stored-prosedure-null-parametre-gondermek-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2020/01/sql-serverda-stored-prosedure-null-parametre-gondermek-1-315x225.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2020/01/sql-serverda-stored-prosedure-null-parametre-gondermek-1-419x300.jpg 419w, https://sqlserveregitimleri.com/wp-content/uploads/2020/01/sql-serverda-stored-prosedure-null-parametre-gondermek-1-189x135.jpg 189w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere null veri göndererek prosedürümüzü çalıştırmış olduk.</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"> 706</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
