<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.8.0 (http://www.squarespace.com/) on Sat, 07 Nov 2009 16:18:21 GMT--><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rss="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:cc="http://web.resource.org/cc/"><rss:channel rdf:about="http://pinyination.squarespace.com/home/"><rss:title>Home</rss:title><rss:link>http://pinyination.squarespace.com/home/</rss:link><rss:description></rss:description><dc:language>en-US</dc:language><dc:date>2009-11-07T16:18:21Z</dc:date><admin:generatorAgent rdf:resource="http://www.squarespace.com/">Squarespace Site Server v5.8.0 (http://www.squarespace.com/)</admin:generatorAgent><rss:items><rdf:Seq><rdf:li rdf:resource="http://pinyination.squarespace.com/home/2009/4/7/using-modal-popup-and-rounded-corners-extenders-in-conjuncti.html"/><rdf:li rdf:resource="http://pinyination.squarespace.com/home/2009/3/25/updating-relational-sql-tables.html"/><rdf:li rdf:resource="http://pinyination.squarespace.com/home/2008/12/18/using-t-sql-top-clause-with-variables.html"/></rdf:Seq></rss:items></rss:channel><rss:item rdf:about="http://pinyination.squarespace.com/home/2009/4/7/using-modal-popup-and-rounded-corners-extenders-in-conjuncti.html"><rss:title>Using Modal Popup and Rounded Corners Extenders in Conjunction</rss:title><rss:link>http://pinyination.squarespace.com/home/2009/4/7/using-modal-popup-and-rounded-corners-extenders-in-conjuncti.html</rss:link><dc:creator>Alyssa Biederman</dc:creator><dc:date>2009-04-07T13:29:53Z</dc:date><dc:subject></dc:subject><content:encoded><![CDATA[<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="124E93F6_files/filelist.xml">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>arbiederman</o:Author>
  <o:Template>Normal</o:Template>
  <o:Revision>1</o:Revision>
  <o:TotalTime>2</o:TotalTime>
  <o:Created>2009-04-07T13:30:00Z</o:Created>
  <o:Pages>1</o:Pages>
  <o:Words>93</o:Words>
  <o:Characters>531</o:Characters>
  <o:Company>HMB</o:Company>
  <o:Lines>4</o:Lines>
  <o:Paragraphs>1</o:Paragraphs>
  <o:CharactersWithSpaces>623</o:CharactersWithSpaces>
  <o:Version>11.9999</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]--><!--[if !mso]><object
 classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
<style>
st1\:*{behavior:url(#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Californian FB";
	panose-1:2 7 4 3 6 8 11 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:3 0 0 0 1 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Californian FB"'>I
recently ran into an issue when trying to use the <st1:City w:st="on"><st1:place
 w:st="on">AJAX</st1:place></st1:City> toolkit rounded corners extender in
conjunction with the modal pop-up extender. When I set the target of both
extenders to the same panel, my popup was not showing up correctly (my popup
was squished and wasn’t displaying any of the contents I had created). I
found a great, easy to understand solution on this blog post: <a
href="http://www.creativeui.com/2007/07/04/aspnet-ajax-creating-pretty-popups/">http://www.creativeui.com/2007/07/04/aspnet-ajax-creating-pretty-popups/</a>.
<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Californian FB"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Californian FB"'>Hopefully
it will help any of you out there who might run into the same issue.<o:p></o:p></span></p>

</div>

</body>

</html>]]></content:encoded></rss:item><rss:item rdf:about="http://pinyination.squarespace.com/home/2009/3/25/updating-relational-sql-tables.html"><rss:title>Updating Relational SQL Tables</rss:title><rss:link>http://pinyination.squarespace.com/home/2009/3/25/updating-relational-sql-tables.html</rss:link><dc:creator>Alyssa Biederman</dc:creator><dc:date>2009-03-25T19:38:20Z</dc:date><dc:subject></dc:subject><content:encoded><![CDATA[<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="938AC89D_files/filelist.xml">
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>arbiederman</o:Author>
  <o:Template>Normal</o:Template>
  <o:Revision>1</o:Revision>
  <o:TotalTime>17</o:TotalTime>
  <o:Created>2009-03-25T19:24:00Z</o:Created>
  <o:Pages>1</o:Pages>
  <o:Words>123</o:Words>
  <o:Characters>703</o:Characters>
  <o:Company>HMB</o:Company>
  <o:Lines>5</o:Lines>
  <o:Paragraphs>1</o:Paragraphs>
  <o:CharactersWithSpaces>825</o:CharactersWithSpaces>
  <o:Version>11.9999</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Print</w:View>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Garamond;
	panose-1:2 2 4 4 3 3 1 1 8 3;
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:647 0 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]-->
</head>

<body lang=EN-US style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:Garamond'>Updating
a table with data from another table in the same database is something I find
myself doing pretty frequently – I use this example quite a bit so I
thought I’d post it for easy reference. It facilitates the updating of
one table with data from another table, using a key relationship:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:Garamond'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:Garamond'>Take for
example <span class=SpellE><b style='mso-bidi-font-weight:normal'>TableA</b></span>
with the following columns…<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:Garamond'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span class=SpellE><span style='font-size:10.0pt;font-family:
Garamond'>ModelId</span></span><span style='font-size:10.0pt;font-family:Garamond'>
(PK)<o:p></o:p></span></p>

<p class=MsoNormal><span class=SpellE><span style='font-size:10.0pt;font-family:
Garamond'>CarName</span></span><span style='font-size:10.0pt;font-family:Garamond'><o:p></o:p></span></p>

<p class=MsoNormal><span class=SpellE><span style='font-size:10.0pt;font-family:
Garamond'>VehicleDescription</span></span><span style='font-size:10.0pt;
font-family:Garamond'><o:p></o:p></span></p>

<p class=MsoNormal><span class=SpellE><span style='font-size:10.0pt;font-family:
Garamond'>CarSerialId</span></span><span style='font-size:10.0pt;font-family:
Garamond'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:Garamond'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span class=GramE><span style='font-size:10.0pt;font-family:
Garamond'>And <span class=SpellE><b style='mso-bidi-font-weight:normal'>TableB</b></span><b
style='mso-bidi-font-weight:normal'> </b>with the following columns…</span></span><span
style='font-size:10.0pt;font-family:Garamond'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:Garamond'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span class=SpellE><span style='font-size:10.0pt;font-family:
Garamond'>MaintenanceId</span></span><span style='font-size:10.0pt;font-family:
Garamond'> (PK)<o:p></o:p></span></p>

<p class=MsoNormal><span class=SpellE><span style='font-size:10.0pt;font-family:
Garamond'>ModelId</span></span><span style='font-size:10.0pt;font-family:Garamond'>
(FK)<o:p></o:p></span></p>

<p class=MsoNormal><span class=SpellE><span style='font-size:10.0pt;font-family:
Garamond'>MaintenanceHist</span></span><span style='font-size:10.0pt;
font-family:Garamond'><o:p></o:p></span></p>

<p class=MsoNormal><span class=SpellE><span style='font-size:10.0pt;font-family:
Garamond'>OwnerName</span></span><span style='font-size:10.0pt;font-family:
Garamond'><o:p></o:p></span></p>

<p class=MsoNormal><span class=SpellE><span style='font-size:10.0pt;font-family:
Garamond'>CarDescription</span></span><span style='font-size:10.0pt;font-family:
Garamond'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:Garamond'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:Garamond'>If I
wanted to update the <span class=SpellE>CarDescription</span> column in <span
class=SpellE>TableB</span> with the data in the <span class=SpellE>VehicleDescription</span>
column in Table A, joining on <span class=SpellE>ModelId</span>, this is how it
would be done:<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Courier New";color:blue;mso-no-proof:yes'>UPDATE</span><span
style='font-size:8.0pt;font-family:"Courier New";mso-no-proof:yes'> [DatabaseName]<span
style='color:gray'>.</span>[dbo]<span style='color:gray'>.</span>[TableB]<o:p></o:p></span></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Courier New";color:blue;mso-no-proof:yes'>SET</span><span
style='font-size:8.0pt;font-family:"Courier New";mso-no-proof:yes'> CarDescription
<span style='color:gray'>=</span> TableA.VehicleDescription<o:p></o:p></span></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Courier New";color:blue;mso-no-proof:yes'>FROM</span><span
style='font-size:8.0pt;font-family:"Courier New";mso-no-proof:yes'> TableB,
TableA<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt;font-family:"Courier New";
color:blue;mso-no-proof:yes'>WHERE</span><span style='font-size:8.0pt;
font-family:"Courier New";mso-no-proof:yes'> TableB.ModelId <span
style='color:gray'>=</span> TableA.ModelId<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt;font-family:"Courier New";
mso-no-proof:yes'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt'><o:p>&nbsp;</o:p></span></p>

</div>

</body>

</html>]]></content:encoded></rss:item><rss:item rdf:about="http://pinyination.squarespace.com/home/2008/12/18/using-t-sql-top-clause-with-variables.html"><rss:title>Using T-SQL 'TOP' Clause with Variables</rss:title><rss:link>http://pinyination.squarespace.com/home/2008/12/18/using-t-sql-top-clause-with-variables.html</rss:link><dc:creator>Alyssa Biederman</dc:creator><dc:date>2008-12-18T22:14:32Z</dc:date><dc:subject></dc:subject><content:encoded><![CDATA[<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">I&rsquo;ve run into a few situations in which I needed to use a variable in a &lsquo;TOP&rsquo; </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">clause in a stored procedure. SQL Server won&rsquo;t allow a variable to be used as </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">the top number of records to be selected: </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">(</span><span style="FONT-SIZE: 8.5pt; COLOR: navy; FONT-FAMILY: 'Lucida Console'">SqlServerError: Incorrect syntax near '@top'.). </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">Usually setting ROWCOUNT would be a good alternative, however I recently</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">ran into a situation in which this would not give me the intended results. </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><strong style="mso-bidi-font-weight: normal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">Here&rsquo;s why:</span></strong><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes"> The stored procedure that was created used a TOP selection</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">criteria in a subselect &ndash; ROWCOUNT applies to the final result set of the query.</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><strong style="mso-bidi-font-weight: normal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">The Solution:</span></strong><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes"> By using the Row_Number() function, row numbers can be assigned</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">to items in the subselect. In this example, the subselect is numbering rows for the top</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">taxpayers in a tax region using </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">Row_Number<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> c<span style="COLOR: gray">.</span>Total <span style="COLOR: blue">DESC</span><span style="COLOR: gray">)</span> <span style="COLOR: blue">AS</span> [RNumber]</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">The order by clause designates that the owner with the highest total will have a</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">row number of 1 and so on. In the containing query, it can be specified to only </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">show results for records with a row number less that the parameter passed to </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">the stored procedure.</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">@iNumRows INT</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">-- (This is our variable to hold the number of</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">-- Results the user wished to see)</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">SELECT</span><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> e.nName, e.nAddress</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">FROM</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="COLOR: gray">&nbsp;&nbsp; (</span><span style="COLOR: blue">SELECT</span> Row_Number<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> c<span style="COLOR: gray">.</span>Total <span style="COLOR: blue">DESC</span><span style="COLOR: gray">)</span> <span style="COLOR: blue">AS</span> [RNumber]<span style="COLOR: gray">,</span></span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="COLOR: gray">&nbsp;&nbsp; </span></span><span style="FONT-SIZE: 8pt; COLOR: fuchsia; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">SUM</span><span style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">(</span><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">c<span style="COLOR: gray">.</span>Total<span style="COLOR: gray">)</span> <span style="COLOR: blue">as</span> Total<span style="COLOR: gray">,</span> c<span style="COLOR: gray">.</span>OwnerName</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp; FROM</span></span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="COLOR: gray">&nbsp;&nbsp;&nbsp;&nbsp; (</span><span style="COLOR: blue">SELECT</span> <span style="COLOR: blue">DISTINCT</span> b<span style="COLOR: gray">.</span>OwnerName<span style="COLOR: gray">,</span> a<span style="COLOR: gray">.</span>land <span style="COLOR: gray">+</span> a<span style="COLOR: gray">.</span>Imp <span style="COLOR: blue">AS</span> total<span style="COLOR: gray">,</span> </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">a<span style="COLOR: gray">.</span>n1stTDP <span style="COLOR: gray">+</span> a<span style="COLOR: gray">.</span>n2ndTDP <span style="COLOR: blue">AS</span> TotDelq</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp; FROM</span> RM_TaxDuplicate a<span style="COLOR: gray">,</span> RM_TaxDuplicateAddress b</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp; WHERE</span> a<span style="COLOR: gray">.</span>nTaxDistrict <span style="COLOR: gray">=</span> 25006 </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">AND</span><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <span style="COLOR: fuchsia">SUBSTRING</span><span style="COLOR: gray">(</span><span style="COLOR: fuchsia">CAST</span><span style="COLOR: gray">(</span>a<span style="COLOR: gray">.</span>nLandUseCode <span style="COLOR: blue">AS</span> <span style="COLOR: blue">VARCHAR</span><span style="COLOR: gray">(</span>5<span style="COLOR: gray">)),</span> 1<span style="COLOR: gray">,</span> 1<span style="COLOR: gray">)</span> <span style="COLOR: gray">=</span> 5</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="COLOR: gray">&nbsp;&nbsp;&nbsp;&nbsp; AND</span> a<span style="COLOR: gray">.</span>nParcelType <span style="COLOR: gray">=</span> 400 <span style="COLOR: gray">AND</span> a<span style="COLOR: gray">.</span>nParcelId <span style="COLOR: gray">=</span> b<span style="COLOR: gray">.</span>ParcelId </span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">AND</span><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> a<span style="COLOR: gray">.</span>nFiscalYear <span style="COLOR: gray">=</span> 2007<span style="COLOR: gray">)</span> c</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="COLOR: blue">&nbsp;&nbsp; GROUP</span> <span style="COLOR: blue">BY</span> c<span style="COLOR: gray">.</span>OwnerName<span style="COLOR: gray">,</span> c<span style="COLOR: gray">.</span>Total<span style="COLOR: gray">,</span> c<span style="COLOR: gray">.</span>TotDelq<span style="COLOR: gray">)</span> d<span style="COLOR: gray">,</span></span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&nbsp;&nbsp; RM_TaxDuplicate e</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">WHERE</span><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> e<span style="COLOR: gray">.</span>nTaxDistrict <span style="COLOR: gray">=</span> 67388 <span style="COLOR: gray">AND</span> d<span style="COLOR: gray">.</span>RNumber <span style="COLOR: gray">&lt;</span> @iNumRows</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">-- @iNumRows should be incremented by 1 when using the less than</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">-- comparison. (ie: if they want to see top 30, we would want</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">-- to look at rows less than 31)</span></p>
<p style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><span style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">AND</span><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> g<span style="COLOR: gray">.</span>OwnerName <span style="COLOR: gray">=</span> d<span style="COLOR: gray">.</span>OwnerName <span style="COLOR: gray">AND</span> e<span style="COLOR: gray">.</span>nFiscalYear <span style="COLOR: gray">=</span> 2007</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">ORDER</span><span style="FONT-SIZE: 8pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <span style="COLOR: blue">BY</span> d<span style="COLOR: gray">.</span>Total <span style="COLOR: blue">DESC</span><span style="COLOR: gray">,</span> e<span style="COLOR: gray">.</span>nOwnerName</span></p>
<p style="MARGIN: 0in 0in 0pt">&nbsp;</p>
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">For more options on how to use the TOP clause with a variable, try checking</span></p>
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Garamond; mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">out <a href="http://sqlserver2000.databases.aspfaq.com/how-do-i-use-a-variable-in-a-top-clause-in-sql-server.html">http://sqlserver2000.databases.aspfaq.com/how-do-i-use-a-variable-in-a-top-clause-in-sql-server.html</a></span></p>]]></content:encoded></rss:item></rdf:RDF>