<?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; Recompile All The Stored Procedure on Specific Table</title>
	<atom:link href="http://blog.sqlauthority.com/2007/06/29/sql-server-recompile-all-the-stored-procedure-on-specific-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/06/29/sql-server-recompile-all-the-stored-procedure-on-specific-table/</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: Gene</title>
		<link>http://blog.sqlauthority.com/2007/06/29/sql-server-recompile-all-the-stored-procedure-on-specific-table/#comment-41770</link>
		<dc:creator>Gene</dc:creator>
		<pubDate>Mon, 18 Aug 2008 21:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/29/sql-server-recompile-all-the-stored-procedure-on-specific-table/#comment-41770</guid>
		<description>I&#039;m trying to find out if I can use any of the following to select between one of two CTEs in a master data set.
Which one will work best.
IIF()
Switch()
CASE()

Code starts out with With CTE### as 
(
select (fields)
from (
select (fields)
from
where (filters)
groub by (groups)
)Pull
Pivot
(Sum()
for month in
(1,2,3,....) as Pvt###
Group by ()
Union all
select (fields)
from (
select (fields)
from
where (filters)
groub by (groups)
)Pull
Pivot
(Sum()
for month in
(1,2,3,....) as Pvt###
Group by ()
)
Select ()
from CTE###
group by ()
Order by ()



__________
thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to find out if I can use any of the following to select between one of two CTEs in a master data set.<br />
Which one will work best.<br />
IIF()<br />
Switch()<br />
CASE()</p>
<p>Code starts out with With CTE### as<br />
(<br />
select (fields)<br />
from (<br />
select (fields)<br />
from<br />
where (filters)<br />
groub by (groups)<br />
)Pull<br />
Pivot<br />
(Sum()<br />
for month in<br />
(1,2,3,&#8230;.) as Pvt###<br />
Group by ()<br />
Union all<br />
select (fields)<br />
from (<br />
select (fields)<br />
from<br />
where (filters)<br />
groub by (groups)<br />
)Pull<br />
Pivot<br />
(Sum()<br />
for month in<br />
(1,2,3,&#8230;.) as Pvt###<br />
Group by ()<br />
)<br />
Select ()<br />
from CTE###<br />
group by ()<br />
Order by ()</p>
<p>__________<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://blog.sqlauthority.com/2007/06/29/sql-server-recompile-all-the-stored-procedure-on-specific-table/#comment-41618</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 12 Aug 2008 18:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/29/sql-server-recompile-all-the-stored-procedure-on-specific-table/#comment-41618</guid>
		<description>Here is a quick way:

SELECT     NAME
                   FROM       sysobjects
                   WHERE      type = &#039;P&#039; AND uid = 1
                   ORDER BY   Name</description>
		<content:encoded><![CDATA[<p>Here is a quick way:</p>
<p>SELECT     NAME<br />
                   FROM       sysobjects<br />
                   WHERE      type = &#8216;P&#8217; AND uid = 1<br />
                   ORDER BY   Name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hairsh</title>
		<link>http://blog.sqlauthority.com/2007/06/29/sql-server-recompile-all-the-stored-procedure-on-specific-table/#comment-34124</link>
		<dc:creator>Hairsh</dc:creator>
		<pubDate>Wed, 05 Mar 2008 06:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/29/sql-server-recompile-all-the-stored-procedure-on-specific-table/#comment-34124</guid>
		<description>Hi,

could you please tell me how to find the sps which are marked for recompile.

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>could you please tell me how to find the sps which are marked for recompile.</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
</channel>
</rss>
