﻿<?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&#8217;da Tablo Üzerinde İstenilen Kolonu Bulmak &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-serverda-tablo-uzerinde-istenilen-kolonu-bulmak/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Sat, 25 Jun 2022 10:40:02 +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&#8217;da Tablo Üzerinde İstenilen Kolonu Bulmak</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-tablo-uzerinde-istenilen-kolonu-bulmak</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Thu, 28 Oct 2021 19:04:54 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server'da Tablo Üzerinde İstenilen Kolonu Bulmak]]></category>
		<category><![CDATA[SQL Tablo Üzerinde İstenilen Kolonu Bulmak]]></category>
		<category><![CDATA[Tablo Üzerinde İstenilen Kolonu Bulmak]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=10903</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server&#8217;da istediğimiz bir kolon adını tablo üzerinde T-SQL kodu ile nasıl bulabileceğimizden bahsedeceğim. SQL Server&#8217;da bazı durumlarda kolon adının tabloda...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server&#8217;da istediğimiz bir kolon adını tablo üzerinde T-SQL kodu ile nasıl bulabileceğimizden bahsedeceğim.</p>
<p>SQL Server&#8217;da bazı durumlarda kolon adının tabloda olup olmadığına bakmak isteyebiliriz ya da yüzlerce tablonuz vardır diyelim. Bu tablolar içine tek tek girmek külfetli gelecek. İşte bu gibi durumlarda aşağıdaki sorgu hayat kurtarıcı olacaktır.</p>
<p>Aşağıdaki kodu kullanarak siz de tablo üzerinde istediğiniz kolonu rahatlıkla bulabilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">SELECT c.name AS 'Kolon Adı',
       t.name AS 'Tablo Adı'
FROM sys.columns c
    JOIN sys.tables t
        ON c.object_id = t.object_id
WHERE c.name LIKE '%CategoryName%'
ORDER BY [Kolon Adı],
         [Tablo Adı];
</code></pre>
<p>Ben işlemlerimi Northwind veri tabanı kullanarak yaptım siz dilediğiniz veri tabanını kullanarak deneyebilirsiniz.</p>
<p>Kodu çalıştırdığınızda aşağıdakine benzer bir sonuç göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-11048 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2021/10/sql-serverda-tablo-uzerinde-istenilen-kolonu-bulmak-1.jpg" alt="SQL Server'da Tablo Üzerinde İstenilen Kolonu Bulmak" width="700" height="465" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2021/10/sql-serverda-tablo-uzerinde-istenilen-kolonu-bulmak-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2021/10/sql-serverda-tablo-uzerinde-istenilen-kolonu-bulmak-1-315x209.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2021/10/sql-serverda-tablo-uzerinde-istenilen-kolonu-bulmak-1-452x300.jpg 452w, https://sqlserveregitimleri.com/wp-content/uploads/2021/10/sql-serverda-tablo-uzerinde-istenilen-kolonu-bulmak-1-203x135.jpg 203w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere <strong>Categories</strong> tablosunda <strong>CategoryName</strong> adlı kolon mevcut.</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"> 599</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
