<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2005 Limiting Result Sets by Using TABLESAMPLE &#8211; Examples</title>
	<atom:link href="http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Wed, 19 Jun 2013 04:23:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: vikramkmahapatra</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-489717</link>
		<dc:creator><![CDATA[vikramkmahapatra]]></dc:creator>
		<pubDate>Wed, 05 Jun 2013 04:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-489717</guid>
		<description><![CDATA[it is interesting to 10 PERCENT is not actually 10 percent of total records instead percentage of data pages spans for this table, so it is retrieving different number of rows each time it runs..]]></description>
		<content:encoded><![CDATA[<p>it is interesting to 10 PERCENT is not actually 10 percent of total records instead percentage of data pages spans for this table, so it is retrieving different number of rows each time it runs..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #031 &#124; Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-486710</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #031 &#124; Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Sat, 01 Jun 2013 01:31:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-486710</guid>
		<description><![CDATA[[&#8230;] Limiting Result Sets by Using TABLESAMPLE – Examples Introduced in SQL Server 2005, TABLESAMPLE allows you to extract a sampling of rows from a table in the FROM clause. The rows retrieved are random and they are are not in any order. This sampling can be based on a percentage of number of rows. You can use TABLESAMPLE when only a sampling of rows is necessary for the application instead of a full result set. [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] Limiting Result Sets by Using TABLESAMPLE – Examples Introduced in SQL Server 2005, TABLESAMPLE allows you to extract a sampling of rows from a table in the FROM clause. The rows retrieved are random and they are are not in any order. This sampling can be based on a percentage of number of rows. You can use TABLESAMPLE when only a sampling of rows is necessary for the application instead of a full result set. [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aryanverma</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-433220</link>
		<dc:creator><![CDATA[aryanverma]]></dc:creator>
		<pubDate>Thu, 07 Mar 2013 05:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-433220</guid>
		<description><![CDATA[The factor is 10 PERCENT is not the percentages of the table rows or tables records, it is percentages of the table’s data pages. (these lines are not in book sqlserver interview questions and answers sir, ) if have that&#039;s wrong printed]]></description>
		<content:encoded><![CDATA[<p>The factor is 10 PERCENT is not the percentages of the table rows or tables records, it is percentages of the table’s data pages. (these lines are not in book sqlserver interview questions and answers sir, ) if have that&#8217;s wrong printed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parul</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-367474</link>
		<dc:creator><![CDATA[Parul]]></dc:creator>
		<pubDate>Thu, 01 Nov 2012 11:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-367474</guid>
		<description><![CDATA[Thanks Pinal It&#039;s really usefull]]></description>
		<content:encoded><![CDATA[<p>Thanks Pinal It&#8217;s really usefull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-336288</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 23 Aug 2012 12:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-336288</guid>
		<description><![CDATA[Youn use either SET ROWCOUNT or TOP Operator]]></description>
		<content:encoded><![CDATA[<p>Youn use either SET ROWCOUNT or TOP Operator</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pankaj</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-324206</link>
		<dc:creator><![CDATA[pankaj]]></dc:creator>
		<pubDate>Fri, 03 Aug 2012 12:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-324206</guid>
		<description><![CDATA[can i set rows limit in a table in sql server 2005 ?]]></description>
		<content:encoded><![CDATA[<p>can i set rows limit in a table in sql server 2005 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajadurai</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-154988</link>
		<dc:creator><![CDATA[rajadurai]]></dc:creator>
		<pubDate>Mon, 08 Aug 2011 10:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-154988</guid>
		<description><![CDATA[what is the purpose of ranking function pls explain sir...]]></description>
		<content:encoded><![CDATA[<p>what is the purpose of ranking function pls explain sir&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish Kadam</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-149825</link>
		<dc:creator><![CDATA[Ashish Kadam]]></dc:creator>
		<pubDate>Thu, 21 Jul 2011 13:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-149825</guid>
		<description><![CDATA[hi sourabh,
basically your suggested newid() function gives some records always but in Tablesample case, it gives 0 or any no. of values, which are not predactable, so system tested properly, using that.]]></description>
		<content:encoded><![CDATA[<p>hi sourabh,<br />
basically your suggested newid() function gives some records always but in Tablesample case, it gives 0 or any no. of values, which are not predactable, so system tested properly, using that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Interview Questions and Answers &#8211; Frequently Asked Questions &#8211; Day 18 of 31 &#171; Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-149036</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Interview Questions and Answers &#8211; Frequently Asked Questions &#8211; Day 18 of 31 &#171; Journey to SQLAuthority]]></dc:creator>
		<pubDate>Mon, 18 Jul 2011 01:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-149036</guid>
		<description><![CDATA[[...] TABLESAMPLE allows you to extract a sampling of rows from a table in the FROM clause. The rows retrieved are random and they are not in any order. This sampling can be based on a percentage of number of rows. You can use TABLESAMPLE when only a sampling of rows is necessary for the application instead of a full result set. (Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] TABLESAMPLE allows you to extract a sampling of rows from a table in the FROM clause. The rows retrieved are random and they are not in any order. This sampling can be based on a percentage of number of rows. You can use TABLESAMPLE when only a sampling of rows is necessary for the application instead of a full result set. (Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mani</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-77117</link>
		<dc:creator><![CDATA[Mani]]></dc:creator>
		<pubDate>Mon, 21 Jun 2010 06:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-77117</guid>
		<description><![CDATA[Really a very helpfull article.
Thanks alot :)]]></description>
		<content:encoded><![CDATA[<p>Really a very helpfull article.<br />
Thanks alot :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sly</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-57005</link>
		<dc:creator><![CDATA[sly]]></dc:creator>
		<pubDate>Sun, 25 Oct 2009 13:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-57005</guid>
		<description><![CDATA[Hello!

BOL: When using TABLESAMPLE against databases that are upgraded to SQL Server 2005, the database&#039;s compatibility level must be set to 90.

Check compatibility level of ADW.

Regards,
Sly]]></description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>BOL: When using TABLESAMPLE against databases that are upgraded to SQL Server 2005, the database&#8217;s compatibility level must be set to 90.</p>
<p>Check compatibility level of ADW.</p>
<p>Regards,<br />
Sly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ganesh</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-56406</link>
		<dc:creator><![CDATA[Ganesh]]></dc:creator>
		<pubDate>Sun, 04 Oct 2009 14:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-56406</guid>
		<description><![CDATA[Hi Pinal,

When I copy your example and executed in Adventureworks Data base it is executed successfully But when I executed similar kind of query in my database &quot;RND&quot; it gives me error as it is posted by sudarsan earlier.

Query:
select empno,fname from dbo.Employees
TABLESAMPLE SYSTEM (20 PERCENT)

Error: Msg 102, Level 15, State 1, Line 3
Incorrect syntax near &#039;SYSTEM&#039;.

Are there any data base properties to be set to use this TABLESAMPLE ?

Please reply this comment as i could not get the solution from long time.


Regards,
GK]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>When I copy your example and executed in Adventureworks Data base it is executed successfully But when I executed similar kind of query in my database &#8220;RND&#8221; it gives me error as it is posted by sudarsan earlier.</p>
<p>Query:<br />
select empno,fname from dbo.Employees<br />
TABLESAMPLE SYSTEM (20 PERCENT)</p>
<p>Error: Msg 102, Level 15, State 1, Line 3<br />
Incorrect syntax near &#8216;SYSTEM&#8217;.</p>
<p>Are there any data base properties to be set to use this TABLESAMPLE ?</p>
<p>Please reply this comment as i could not get the solution from long time.</p>
<p>Regards,<br />
GK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sourabh Sachdeva</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-55555</link>
		<dc:creator><![CDATA[Sourabh Sachdeva]]></dc:creator>
		<pubDate>Thu, 03 Sep 2009 11:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-55555</guid>
		<description><![CDATA[Hi Pinal,

            I think for this you can use newid() function of sql server.

Like if anyone want to select 10 rows from table in random order. He can use

select top 10 * from Table_Name order by newid()]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>            I think for this you can use newid() function of sql server.</p>
<p>Like if anyone want to select 10 rows from table in random order. He can use</p>
<p>select top 10 * from Table_Name order by newid()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2008 - Interview Questions and Answers - Part 8 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-47489</link>
		<dc:creator><![CDATA[SQL SERVER - 2008 - Interview Questions and Answers - Part 8 Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Thu, 26 Feb 2009 12:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-47489</guid>
		<description><![CDATA[[...] What do you mean by Table Sample? TABLESAMPLE allows you to extract a sampling of rows from a table in the FROM clause. The rows retrieved are random and they are not in any order. This sampling can be based on a percentage of number of rows. You can use TABLESAMPLE when only a sampling of rows is necessary for the application instead of a full result set. (Read More Here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] What do you mean by Table Sample? TABLESAMPLE allows you to extract a sampling of rows from a table in the FROM clause. The rows retrieved are random and they are not in any order. This sampling can be based on a percentage of number of rows. You can use TABLESAMPLE when only a sampling of rows is necessary for the application instead of a full result set. (Read More Here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-47215</link>
		<dc:creator><![CDATA[SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-47215</guid>
		<description><![CDATA[[...] SQL SERVER - 2005 Limiting Result Sets by Using TABLESAMPLE - Examples [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; 2005 Limiting Result Sets by Using TABLESAMPLE &#8211; Examples [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sudharson</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-34290</link>
		<dc:creator><![CDATA[sudharson]]></dc:creator>
		<pubDate>Wed, 12 Mar 2008 11:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-34290</guid>
		<description><![CDATA[HI ,
  Im getting an error like &quot;Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near &#039;system&#039;.&quot;


When i try to use run the following query.


select test from test tablesample system(10 percent)]]></description>
		<content:encoded><![CDATA[<p>HI ,<br />
  Im getting an error like &#8220;Server: Msg 170, Level 15, State 1, Line 1<br />
Line 1: Incorrect syntax near &#8216;system&#8217;.&#8221;</p>
<p>When i try to use run the following query.</p>
<p>select test from test tablesample system(10 percent)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bdavies</title>
		<link>http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-33544</link>
		<dc:creator><![CDATA[bdavies]]></dc:creator>
		<pubDate>Wed, 06 Feb 2008 18:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/27/sql-server-2005-limiting-result-sets-by-using-tablesample-examples/#comment-33544</guid>
		<description><![CDATA[Thank you, this was helpful]]></description>
		<content:encoded><![CDATA[<p>Thank you, this was helpful</p>
]]></content:encoded>
	</item>
</channel>
</rss>
