<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.com/rss_namespace/">
 <channel>
  <title>Datakent Forum : SQL INT SPLIT</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : Microsoft SQL Server : SQL INT SPLIT</description>
  <pubDate>Sun, 19 Apr 2026 11:58:50 +0000</pubDate>
  <lastBuildDate>Sun, 19 Apr 2015 10:30:52 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.54</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.datakent.com/RSS_post_feed.asp?TID=2788</WebWizForums:feedURL>
  <image>
   <title>Datakent Forum</title>
   <url>http://forum.datakent.com/forum_images/datakent.com_forums.png</url>
   <link>http://forum.datakent.com/</link>
  </image>
  <item>
   <title>SQL INT SPLIT : CREATE FUNCTION .(	@IDS varchar(MAX))RETURNS...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2788&amp;PID=5629#5629</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=1" rel="nofollow">murat turan</a><br /><strong>Konu:</strong> 2788<br /><strong>Gönderim Zamanı:</strong> 19.Nisan.2015 Saat 10:30<br /><br /><div>CREATE FUNCTION &#091;dbo&#093;.&#091;SqlSplit2Int&#093;</div><div>(</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>@IDS varchar(MAX)</div><div>)</div><div>RETURNS @SqlTblSplit TABLE</div><div>(</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>rcid int</div><div>)</div><div>AS</div><div>BEGIN<span ="Apple-tab-span" style="white-space:pre">	</span></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>DECLARE @String &nbsp; &nbsp;VARCHAR(11)</div><div><br></div><div>&nbsp; &nbsp; WHILE LEN(@IDS) &gt; 0</div><div>&nbsp; &nbsp; BEGIN</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SET @String &nbsp; &nbsp; &nbsp;= LEFT(@IDS,&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ISNULL(NULLIF(CHARINDEX(',', @IDS) - 1, -1),</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEN(@IDS)))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SET @IDS = SUBSTRING(@IDS,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISNULL(NULLIF(CHARINDEX(',', @IDS), 0),</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LEN(@IDS)) + 1, LEN(@IDS))</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; INSERT INTO @SqlTblSplit ( rcid )</div><div>&nbsp; &nbsp; &nbsp; &nbsp; VALUES ( CAST(@String AS INT) )</div><div>&nbsp; &nbsp; END &nbsp;&nbsp;</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>RETURN</div><div>END</div><div><br></div><div>-- KULLANIM</div><div>SELECT * FROM &#091;dbo&#093;.&#091;SqlSplit2Int&#093;&nbsp;</div><div>('1000000000,1000000002,1000000003,1000000004,1000000005,1000000006,1000000007,1000000008,1000000009')</div>]]>
   </description>
   <pubDate>Sun, 19 Apr 2015 10:30:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2788&amp;PID=5629#5629</guid>
  </item> 
 </channel>
</rss>