<?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>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>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>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>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>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>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>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>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>[...] 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>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>[...] 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>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>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 &#8217;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>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>Thank you, this was helpful</description>
		<content:encoded><![CDATA[<p>Thank you, this was helpful</p>
]]></content:encoded>
	</item>
</channel>
</rss>
