<?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 Paging</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : Microsoft SQL Server : SQL Paging</description>
  <pubDate>Wed, 29 Apr 2026 16:14:26 +0000</pubDate>
  <lastBuildDate>Tue, 13 Jul 2010 13:33:27 +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=1950</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 Paging : CREATE PROCEDURE . @SayfaNo int AS BEGIN  Declare...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1950&amp;PID=4242#4242</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3122" rel="nofollow">turknetyazilim</a><br /><strong>Konu:</strong> 1950<br /><strong>Gönderim Zamanı:</strong> 13.Temmuz.2010 Saat 13:33<br /><br /><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes">CREATE</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"> <SPAN style="COLOR: blue">PROCEDURE</SPAN> &#091;dbo&#093;<SPAN style="COLOR: gray">.</SPAN>&#091;TumKullanicilariGetir&#093;<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>@SayfaNo <SPAN style="COLOR: blue">int<o:p></o:p></SPAN></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes">AS<o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes">BEGIN<o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="COLOR: blue">Declare</SPAN> @Baslangic <SPAN style="COLOR: blue">int</SPAN><SPAN style="COLOR: gray">;<o:p></o:p></SPAN></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="COLOR: blue">Declare</SPAN> @Bitis <SPAN style="COLOR: blue">int</SPAN><SPAN style="COLOR: gray">;<o:p></o:p></SPAN></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="COLOR: blue">Declare</SPAN> @SayfalikKayitSayisi <SPAN style="COLOR: blue">int</SPAN><SPAN style="COLOR: gray">;<o:p></o:p></SPAN></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: gray; FONT-SIZE: 10pt; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="COLOR: blue">Set</SPAN> @SayfalikKayitSayisi<SPAN style="COLOR: gray">=</SPAN>200<SPAN style="COLOR: gray">;</SPAN> <SPAN style="COLOR: green">/* Bir sayfada listelecek olan kayıt sayısı*/<o:p></o:p></SPAN></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="COLOR: blue">Set</SPAN> @Baslangic<SPAN style="COLOR: gray">=(</SPAN>@SayfaNo <SPAN style="COLOR: gray">*</SPAN> @SayfalikKayitSayisi<SPAN style="COLOR: gray">)-</SPAN>@SayfalikKayitSayisi<SPAN style="COLOR: gray">+</SPAN>1<SPAN style="COLOR: gray">;<o:p></o:p></SPAN></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="COLOR: blue">Set</SPAN> @Bitis<SPAN style="COLOR: gray">=(</SPAN>@Baslangic<SPAN style="COLOR: gray">+</SPAN>@SayfalikKayitSayisi<SPAN style="COLOR: gray">)-</SPAN>1<SPAN style="COLOR: gray">;<o:p></o:p></SPAN></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: gray; FONT-SIZE: 10pt; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes">with</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"> TemUsers <SPAN style="COLOR: blue">as<o:p></o:p></SPAN></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: gray; FONT-SIZE: 10pt; mso-no-proof: yes">(<o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN><SPAN style="COLOR: blue">Select</SPAN> <SPAN style="COLOR: fuchsia">ROW_NUMBER</SPAN><SPAN style="COLOR: gray">()</SPAN> <SPAN style="COLOR: blue">over</SPAN> <SPAN style="COLOR: gray">(</SPAN><SPAN style="COLOR: blue">Order</SPAN> <SPAN style="COLOR: blue">by</SPAN> UserID <SPAN style="COLOR: blue">DESC</SPAN><SPAN style="COLOR: gray">)</SPAN> KayitNo<SPAN style="COLOR: gray">,</SPAN>UserID<SPAN style="COLOR: gray">,</SPAN>UserName<SPAN style="COLOR: gray">,</SPAN>UserSurName<o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">From</SPAN> Users<SPAN style="COLOR: gray">(</SPAN><SPAN style="COLOR: blue">nolock</SPAN><SPAN style="COLOR: gray">)</SPAN> <SPAN style="COLOR: blue">as</SPAN> Users <o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: gray; FONT-SIZE: 10pt; mso-no-proof: yes">)<o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes">Select</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"> <SPAN style="COLOR: gray">*</SPAN> <SPAN style="COLOR: blue">From</SPAN> TemUsers <SPAN style="COLOR: blue">Where</SPAN> KayitNo <SPAN style="COLOR: gray">Between</SPAN> @Baslangic <SPAN style="COLOR: gray">AND</SPAN> @Bitis <SPAN style="COLOR: blue">Order</SPAN> <SPAN style="COLOR: blue">By</SPAN> UserID <SPAN style="COLOR: blue">Desc</SPAN> <o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes">END<o:p></o:p></SPAN></P><P>Burada işi götüren&nbsp; <FONT face="Courier New"><FONT size=2><SPAN style="COLOR: fuchsia">ROW_NUMBER</SPAN><SPAN style="COLOR: gray">()</SPAN>&nbsp;<FONT face=Verdana>fonksiyonu.Sanırım Bu Fonksiyon SQL 2000 de yok .</P><DIV></DIV>sayfa numaralarınıda Kayıt sayısı üzerinden hesaplayıp oluşturabilirsiniz.<DIV></DIV>Performans konusunda sql paging süper.</FONT></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 13 Jul 2010 13:33:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1950&amp;PID=4242#4242</guid>
  </item> 
 </channel>
</rss>