﻿<?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 Tüm Tabloların Identity Değeri &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-server-tum-tablolarin-identity-degeri/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Thu, 27 Oct 2022 13:22:00 +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 Identity Kolonuna Sahip Tüm Tablolar Hakkında Detaylı Bilgi Almak</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-identity-kolonuna-sahip-tum-tablolar-hakkinda-detayli-bilgi-almak</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Thu, 27 Oct 2022 13:22:00 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Identity List]]></category>
		<category><![CDATA[SQL Server Tüm Tabloların Identity Değeri]]></category>
		<category><![CDATA[SQL Server’da IDENTITY Kolonu]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=14478</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server’da Identity kolonuna sahip tüm tablolar hakkında detaylı bilgi almak ile ilgili bilgi vermeye çalışacağım. SQL Server’da bazı durumlarda Identity...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server’da Identity kolonuna sahip tüm tablolar hakkında detaylı bilgi almak ile ilgili bilgi vermeye çalışacağım.</p>
<p>SQL Server’da bazı durumlarda Identity kolonuna sahip tüm tablolar hakkında detaylı bilgi almak isteyebilirsiniz.</p>
<p>Aşağıdaki kodu kullanarak siz de bu işlemi rahatlıkla yapabilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">SELECT A.TABLE_CATALOG AS CATALOG,
       A.TABLE_SCHEMA AS "SCHEMA",
       A.TABLE_NAME AS "TABLE",
       B.COLUMN_NAME AS "COLUMN",
       IDENT_SEED(A.TABLE_NAME) AS Seed,
       IDENT_INCR(A.TABLE_NAME) AS Increment,
       IDENT_CURRENT(A.TABLE_NAME) AS Curr_Value,
       B.DATA_TYPE AS "Type",
       Type_Limit = CASE LOWER(B.DATA_TYPE)
                        WHEN 'bigint' THEN
                            '9,223,372,036,854,775,807'
                        WHEN 'int' THEN
                            '2,147,483,647'
                        WHEN 'smallint' THEN
                            '32,767'
                        WHEN 'tinyint' THEN
                            '255'
                        WHEN 'decimal' THEN
                            REPLICATE('9', B.NUMERIC_PRECISION)
                        WHEN 'numeric' THEN
                            REPLICATE('9', B.NUMERIC_PRECISION)
                    END
FROM INFORMATION_SCHEMA.TABLES A,
     INFORMATION_SCHEMA.COLUMNS B
WHERE A.TABLE_CATALOG = B.TABLE_CATALOG
      AND A.TABLE_SCHEMA = B.TABLE_SCHEMA
      AND A.TABLE_NAME = B.TABLE_NAME
      AND COLUMNPROPERTY(OBJECT_ID(B.TABLE_NAME), B.COLUMN_NAME, 'IsIdentity') = 1
      AND OBJECTPROPERTY(OBJECT_ID(A.TABLE_NAME), 'TableHasIdentity') = 1
      AND A.TABLE_TYPE = 'BASE TABLE'
ORDER BY A.TABLE_SCHEMA,
         A.TABLE_NAME;</code></pre>
<p>Yukarıdaki kodu çalıştırınca aşağıdakine benzer bir sonuç göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-14480 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2022/09/sql-serverda-identity-kolonuna-sahip-tum-tablolar-hakkinda-detayli-bilgi-almak-1.jpg" alt="SQL Server'da Identity Kolonuna Sahip Tüm Tablolar Hakkında Detaylı Bilgi Almak" width="700" height="432" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2022/09/sql-serverda-identity-kolonuna-sahip-tum-tablolar-hakkinda-detayli-bilgi-almak-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2022/09/sql-serverda-identity-kolonuna-sahip-tum-tablolar-hakkinda-detayli-bilgi-almak-1-315x194.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2022/09/sql-serverda-identity-kolonuna-sahip-tum-tablolar-hakkinda-detayli-bilgi-almak-1-486x300.jpg 486w, https://sqlserveregitimleri.com/wp-content/uploads/2022/09/sql-serverda-identity-kolonuna-sahip-tum-tablolar-hakkinda-detayli-bilgi-almak-1-219x135.jpg 219w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere Identity kolonuna sahip tüm tablolar hakkında detaylı bilgi almış 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"> 207</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
