<?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>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 10 Feb 2012 02:12:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<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>

