<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013479" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013479</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/limit-syntax-sql-server#comment-1078195</link>
    <description> &lt;p&gt;Mark,&lt;/p&gt;
&lt;p&gt;Don&#039;t apologize, it&#039;s handy to have someone familiar with PHP help me out &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt; I&#039;ll browse the scripting forum more often to see if I can help you out with ASP/XML/COM...&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Feb 2001 14:09:46 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1078195 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/limit-syntax-sql-server#comment-1078168</link>
    <description> &lt;p&gt;lol, sorry Peter.... stop by the scripting forum anytime &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Feb 2001 23:21:26 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1078168 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/limit-syntax-sql-server#comment-1078151</link>
    <description> &lt;p&gt;Gil,&lt;/p&gt;
&lt;p&gt;Even when you think you&#039;re not going to need it you should always setup some sort of auto integer field to help differentiate records. It adds little to the table&#039;s overall size but can be a real blessing down the road. Try the following SQL syntax:&lt;/p&gt;
&lt;p&gt;UPDATE TableName&lt;br /&gt;
SET FieldName = &#039;TheValue&#039;&lt;br /&gt;
FROM (SELECT TOP 1 * FROM TableName ORDER BY FieldName) AS&lt;br /&gt;
foo&lt;br /&gt;
WHERE TableName.FieldName = foo.FieldName&lt;/p&gt;
&lt;p&gt;Mark,&lt;/p&gt;
&lt;p&gt;Are you sure you&#039;re not the database moderator? &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;, maybe I should be visiting the scripting forum more often &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Feb 2001 14:11:32 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1078151 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/limit-syntax-sql-server#comment-1078150</link>
    <description> &lt;p&gt;There are a few reasons why I didn&#039;t create a UID, but that&#039;s not the point. There is no way in SQL Server to do something like LIMIT?&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Feb 2001 13:42:21 +0000</pubDate>
 <dc:creator>Gil</dc:creator>
 <guid isPermaLink="false">comment 1078150 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/limit-syntax-sql-server#comment-1078146</link>
    <description> &lt;p&gt;argh... how many records?&lt;/p&gt;
&lt;p&gt;I&#039;m thinking you could create a unique field....&lt;br /&gt;
maybe, create a new table with all the correct fields, and an extra (ID) which is unique.&lt;br /&gt;
then use a DB data dump (like from phpMyAdmin) and put the data in to the new table.&lt;br /&gt;
delete the old table, rename the new to the old.&lt;/p&gt;
&lt;p&gt;you could write a PHP script to do this... farly easy..&lt;/p&gt;
&lt;p&gt;Why did you ever create a table with no unique field?&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Feb 2001 08:14:30 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1078146 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/limit-syntax-sql-server#comment-1078145</link>
    <description> &lt;p&gt;Maybe I should have been a little more specific. &lt;/p&gt;
&lt;p&gt;I have a table that has multiple records with the same information (there is no unique identifier). So when I go to update one of those records, I only want to update one of them. So that&#039;s why I wanted to use LIMIT&lt;/p&gt;
&lt;p&gt;But Update table TOP 1 SET var=&#039;$foo&#039; where var=&#039;$oldfoo&#039; doesn&#039;t work. It gives me a syntax error. I&#039;m not using ASP for the project, I&#039;m using PHP. Any other suggestions?&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Feb 2001 05:21:22 +0000</pubDate>
 <dc:creator>Gil</dc:creator>
 <guid isPermaLink="false">comment 1078145 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/limit-syntax-sql-server#comment-1078142</link>
    <description> &lt;p&gt;forgot... there is an ASP specific thing...&lt;br /&gt;
If your trying to pagenate something (like search results), you may want to try playing with the RecordSet object.  Check out these links for more info:&lt;br /&gt;
&lt;a href=&quot;http://support.microsoft.com/support/kb/articles/Q202/1/25.ASP&quot; class=&quot;bb-url&quot;&gt;http://support.microsoft.com/support/kb/articles/Q202/1/25.ASP&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/library/partbook/asp20/apagedresultsetexample.htm&quot; class=&quot;bb-url&quot;&gt;http://msdn.microsoft.com/library/partbook/asp20/apagedresultsetexample.htm&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.asp101.com/articles/recordsetpaging/index.asp&quot; class=&quot;bb-url&quot;&gt;http://www.asp101.com/articles/recordsetpaging/index.asp&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.asp101.com/samples/db_paging.asp&quot; class=&quot;bb-url&quot;&gt;http://www.asp101.com/samples/db_paging.asp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Good Luck,&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Feb 2001 04:30:37 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1078142 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/limit-syntax-sql-server#comment-1078139</link>
    <description> &lt;p&gt;&quot;SELECT &lt;strong&gt;TOP 5&lt;/strong&gt; * FROM table_name&quot;&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Feb 2001 04:23:54 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1078139 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
