﻿<?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 mail düzeltme &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-server-mail-duzeltme/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Mon, 06 Mar 2023 10:10:50 +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 E-posta Adresini Uyumlu Hale Getiren Fonksiyon</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-e-posta-adresini-uyumlu-hale-getiren-fonksiyon</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Mon, 06 Mar 2023 10:10:50 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[E-posta Adresini Uyumlu Hale Getiren Fonksiyon]]></category>
		<category><![CDATA[sql server e-posta adresi düzeltme]]></category>
		<category><![CDATA[sql server mail düzeltme]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=15359</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server’da e-posta adresini uyumlu hale getiren fonksiyon ile ilgili bilgi vermeye çalışacağım. SQL Server&#8217;da bazı durumlarda e-posta adreslerine Türkçe karakterler...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server’da e-posta adresini uyumlu hale getiren fonksiyon ile ilgili bilgi vermeye çalışacağım.</p>
<p>SQL Server&#8217;da bazı durumlarda e-posta adreslerine Türkçe karakterler girilmiş olunabilir ya da e-posta adresleri girilmeden önce e-posta adreslerini düzeltmek gerekebilir.</p>
<p>Aşağıdaki fonksiyonu kullanarak siz de bu işlemi rahatlıkla yapabilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">CREATE FUNCTION dbo.EPosta_Adresi_Duzelt (@EMAIL NVARCHAR(200))
RETURNS NVARCHAR(200)
AS
BEGIN
	DECLARE @TempString NVARCHAR(200)
	SET @TempString = @EMAIL
	IF NULLIF(@TempString, '') IS NOT NULL
	BEGIN
		IF @TempString LIKE '%@%'
		BEGIN
			SET @TempString = REPLACE(@TempString, ' ', '')
			SET @TempString = REPLACE(@TempString, 'Ü', 'u')
			SET @TempString = REPLACE(@TempString, 'ü', 'u')
			SET @TempString = REPLACE(@TempString, 'Ğ', 'g')
			SET @TempString = REPLACE(@TempString, 'ğ', 'g')
			SET @TempString = REPLACE(@TempString, 'Ç', 'c')
			SET @TempString = REPLACE(@TempString, 'ç', 'c')
			SET @TempString = REPLACE(@TempString, 'Ş', 's')
			SET @TempString = REPLACE(@TempString, 'ş', 's')
			SET @TempString = REPLACE(@TempString, 'İ', 'i')
			SET @TempString = REPLACE(@TempString, 'I', 'i')
			SET @TempString = REPLACE(@TempString, 'ı', 'i')
			SET @TempString = REPLACE(@TempString, 'Ö', 'o')
			SET @TempString = REPLACE(@TempString, 'ö', 'o')
			SET @TempString = LOWER(@TempString)
		END
		ELSE
		BEGIN
			SET @TempString = 'Geçersiz E-Mail Adresi';
		END
	END
	ELSE
	BEGIN
		SET @TempString = 'Boş E-Mail Adresi';
	END
	RETURN @TempString
END
GO

--Kullanımı

SELECT
	dbo.EPosta_Adresi_Duzelt('Sqlservereğitimleri@sqlservereğitimleri.com')</code></pre>
<p>Yukarıdaki fonksiyonu oluşturup çalıştırınca aşağıdakine benzer bir sonuç göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-15363 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2023/03/sql-serverda-e-posta-adresini-uyumlu-hale-getiren-fonksiyon-1.png" alt="" width="700" height="375" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2023/03/sql-serverda-e-posta-adresini-uyumlu-hale-getiren-fonksiyon-1.png 700w, https://sqlserveregitimleri.com/wp-content/uploads/2023/03/sql-serverda-e-posta-adresini-uyumlu-hale-getiren-fonksiyon-1-315x169.png 315w, https://sqlserveregitimleri.com/wp-content/uploads/2023/03/sql-serverda-e-posta-adresini-uyumlu-hale-getiren-fonksiyon-1-560x300.png 560w, https://sqlserveregitimleri.com/wp-content/uploads/2023/03/sql-serverda-e-posta-adresini-uyumlu-hale-getiren-fonksiyon-1-252x135.png 252w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere e-posta adresini uyumlu hale getirmiş 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"> 157</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
