<?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 &#8211; List All Stored Procedure Modified in Last N Days</title>
	<atom:link href="http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/</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: Nitin</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-250664</link>
		<dc:creator><![CDATA[Nitin]]></dc:creator>
		<pubDate>Thu, 09 Feb 2012 19:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-250664</guid>
		<description><![CDATA[Hi Pinal,

Is there a way to find out who (which domain user) has created a login on the server? And who (which domain user) has modified the same login ? if they have modified, what have they edited, old value and new values to be specific ?

select * from master.sys.syslogins -- shows the createdate, updatedate and accdate but not the user info.

sys.fn_tracegettable also has a limitation of only 5 traces.

Can you help me ?

Nitin.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Is there a way to find out who (which domain user) has created a login on the server? And who (which domain user) has modified the same login ? if they have modified, what have they edited, old value and new values to be specific ?</p>
<p>select * from master.sys.syslogins &#8212; shows the createdate, updatedate and accdate but not the user info.</p>
<p>sys.fn_tracegettable also has a limitation of only 5 traces.</p>
<p>Can you help me ?</p>
<p>Nitin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sowmya</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-212699</link>
		<dc:creator><![CDATA[Sowmya]]></dc:creator>
		<pubDate>Wed, 07 Dec 2011 10:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-212699</guid>
		<description><![CDATA[Hi.. Thanks for all the info.. I have a query in my environment.. please let me know hw to achieve the below agenda :

-&gt; Monitor the environment and find if a new sql agent  job has been created. If yes report the details of the job; We can catch the new jobs and update the job with notifications assigned to person/DL responsible for the job.

-&gt; Monitors the environment and find status of Server level priviliges of all the logins and sends a report. We can  identify any changes in the priviliges of logins by comparing with the previous report

Please help me.. Its urgent..]]></description>
		<content:encoded><![CDATA[<p>Hi.. Thanks for all the info.. I have a query in my environment.. please let me know hw to achieve the below agenda :</p>
<p>-&gt; Monitor the environment and find if a new sql agent  job has been created. If yes report the details of the job; We can catch the new jobs and update the job with notifications assigned to person/DL responsible for the job.</p>
<p>-&gt; Monitors the environment and find status of Server level priviliges of all the logins and sends a report. We can  identify any changes in the priviliges of logins by comparing with the previous report</p>
<p>Please help me.. Its urgent..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-207958</link>
		<dc:creator><![CDATA[Ayan]]></dc:creator>
		<pubDate>Wed, 30 Nov 2011 13:04:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-207958</guid>
		<description><![CDATA[Hi Pinal

I need to generate the list of all tables whose structures were modified in the last 15 days. All tables whose data were modified should not be included in the list.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal</p>
<p>I need to generate the list of all tables whose structures were modified in the last 15 days. All tables whose data were modified should not be included in the list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo Garnica</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-180964</link>
		<dc:creator><![CDATA[Pablo Garnica]]></dc:creator>
		<pubDate>Thu, 20 Oct 2011 00:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-180964</guid>
		<description><![CDATA[Thanks for your comments.  in several oportunities they  were very usefull for me.

Thanks from Colombia - South América]]></description>
		<content:encoded><![CDATA[<p>Thanks for your comments.  in several oportunities they  were very usefull for me.</p>
<p>Thanks from Colombia &#8211; South América</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: friendlyvlad</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-136148</link>
		<dc:creator><![CDATA[friendlyvlad]]></dc:creator>
		<pubDate>Mon, 23 May 2011 03:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-136148</guid>
		<description><![CDATA[Thank you!  It is a great post.  I&#039;d like to clarify one thing.  Both queries can return the same values.  This can happen if I created a new stored procedure within the last 7 days and then updated it.]]></description>
		<content:encoded><![CDATA[<p>Thank you!  It is a great post.  I&#8217;d like to clarify one thing.  Both queries can return the same values.  This can happen if I created a new stored procedure within the last 7 days and then updated it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-116015</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 04 Feb 2011 10:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-116015</guid>
		<description><![CDATA[Refer this
http://msdn.microsoft.com/en-us/library/ff650699.aspx]]></description>
		<content:encoded><![CDATA[<p>Refer this<br />
<a href="http://msdn.microsoft.com/en-us/library/ff650699.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ff650699.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kacey Lee</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-115949</link>
		<dc:creator><![CDATA[Kacey Lee]]></dc:creator>
		<pubDate>Thu, 03 Feb 2011 23:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-115949</guid>
		<description><![CDATA[Hi Madhivanan, 
I am very new to this.  How can I run a profiler?]]></description>
		<content:encoded><![CDATA[<p>Hi Madhivanan,<br />
I am very new to this.  How can I run a profiler?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: girish</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-102740</link>
		<dc:creator><![CDATA[girish]]></dc:creator>
		<pubDate>Mon, 29 Nov 2010 07:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-102740</guid>
		<description><![CDATA[thanks...]]></description>
		<content:encoded><![CDATA[<p>thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Estevez</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-90090</link>
		<dc:creator><![CDATA[Estevez]]></dc:creator>
		<pubDate>Wed, 29 Sep 2010 13:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-90090</guid>
		<description><![CDATA[Thank you for for the tip, it is useful when we make the new release.]]></description>
		<content:encoded><![CDATA[<p>Thank you for for the tip, it is useful when we make the new release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-80950</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Tue, 20 Jul 2010 15:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-80950</guid>
		<description><![CDATA[Use this

exec sp_depends &#039;procedure name&#039;]]></description>
		<content:encoded><![CDATA[<p>Use this</p>
<p>exec sp_depends &#8216;procedure name&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prasath</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-80919</link>
		<dc:creator><![CDATA[prasath]]></dc:creator>
		<pubDate>Tue, 20 Jul 2010 11:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-80919</guid>
		<description><![CDATA[hi everyone , 
how can i list out the table names from the stored procedure in sql 2005....,]]></description>
		<content:encoded><![CDATA[<p>hi everyone ,<br />
how can i list out the table names from the stored procedure in sql 2005&#8230;.,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78462</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 15:11:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78462</guid>
		<description><![CDATA[If you use version 2005, you can make use of row_number function as shown in this post
http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx]]></description>
		<content:encoded><![CDATA[<p>If you use version 2005, you can make use of row_number function as shown in this post<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78457</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 14:58:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78457</guid>
		<description><![CDATA[There is no way in version 2000 until you have dicumented it]]></description>
		<content:encoded><![CDATA[<p>There is no way in version 2000 until you have dicumented it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78456</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 14:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78456</guid>
		<description><![CDATA[select name from sysobjects
where 
crdate&gt;=dateadd(day,datediff(day,0,getdate()),0) and
crdate&lt;dateadd(day,datediff(day,0,getdate())+1,0)]]></description>
		<content:encoded><![CDATA[<p>select name from sysobjects<br />
where<br />
crdate&gt;=dateadd(day,datediff(day,0,getdate()),0) and<br />
crdate&lt;dateadd(day,datediff(day,0,getdate())+1,0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78455</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 14:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78455</guid>
		<description><![CDATA[select datename(month,dates) as month_name from
(
select dateadd(month,number,0) as dates from master..spt_values where type=&#039;p&#039; and number between 0 and 11
) as t]]></description>
		<content:encoded><![CDATA[<p>select datename(month,dates) as month_name from<br />
(<br />
select dateadd(month,number,0) as dates from master..spt_values where type=&#8217;p&#8217; and number between 0 and 11<br />
) as t</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78445</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 12:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78445</guid>
		<description><![CDATA[Note that in version 2000, you can&#039;t use row_number() function]]></description>
		<content:encoded><![CDATA[<p>Note that in version 2000, you can&#8217;t use row_number() function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78443</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 12:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78443</guid>
		<description><![CDATA[If you want to show data in the front end application, do numbering there. Otherwise copy the resultset a temp table that has identity column]]></description>
		<content:encoded><![CDATA[<p>If you want to show data in the front end application, do numbering there. Otherwise copy the resultset a temp table that has identity column</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78437</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 12:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78437</guid>
		<description><![CDATA[As I said in my previous reply, you should have run a profiler to find this]]></description>
		<content:encoded><![CDATA[<p>As I said in my previous reply, you should have run a profiler to find this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78436</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 12:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78436</guid>
		<description><![CDATA[I dont think it is possible until you had run a profiler]]></description>
		<content:encoded><![CDATA[<p>I dont think it is possible until you had run a profiler</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78434</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 12:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78434</guid>
		<description><![CDATA[EXEC sp_depends &#039;procedure name&#039;]]></description>
		<content:encoded><![CDATA[<p>EXEC sp_depends &#8216;procedure name&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcos</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78405</link>
		<dc:creator><![CDATA[Marcos]]></dc:creator>
		<pubDate>Thu, 01 Jul 2010 08:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-78405</guid>
		<description><![CDATA[How Should I know the relation between a Stored Procedure x Tables it uses?

Is there any way?

Thanks a Lot!]]></description>
		<content:encoded><![CDATA[<p>How Should I know the relation between a Stored Procedure x Tables it uses?</p>
<p>Is there any way?</p>
<p>Thanks a Lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shanu</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-77140</link>
		<dc:creator><![CDATA[Shanu]]></dc:creator>
		<pubDate>Mon, 21 Jun 2010 09:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-77140</guid>
		<description><![CDATA[You are really helpful for us.]]></description>
		<content:encoded><![CDATA[<p>You are really helpful for us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naveena</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-71983</link>
		<dc:creator><![CDATA[Naveena]]></dc:creator>
		<pubDate>Fri, 21 May 2010 04:28:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-71983</guid>
		<description><![CDATA[Select Row_number() Over(order by id)SerialNumber,*, From Table Name]]></description>
		<content:encoded><![CDATA[<p>Select Row_number() Over(order by id)SerialNumber,*, From Table Name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GK007</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-69621</link>
		<dc:creator><![CDATA[GK007]]></dc:creator>
		<pubDate>Fri, 07 May 2010 06:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-69621</guid>
		<description><![CDATA[thnaks.....it &#039;s very help full 4 my proj.]]></description>
		<content:encoded><![CDATA[<p>thnaks&#8230;..it &#8216;s very help full 4 my proj.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko Parkkola</title>
		<link>http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-66420</link>
		<dc:creator><![CDATA[Marko Parkkola]]></dc:creator>
		<pubDate>Fri, 23 Apr 2010 09:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/10/sql-server-2005-list-all-stored-procedure-modified-in-last-n-days/#comment-66420</guid>
		<description><![CDATA[This is how I&#039;ve done this on one of our projects and it works like a charm.

SELECT o.modify_date, o.name, m.definition
FROM sys.sql_modules m
JOIN sys.objects o ON o.object_id = m.object_id
WHERE o.modify_date &gt; DATEADD(week, -1, GETDATE())

If you want to filter out only stored procs change sys.objects to sys.procedures.

Sidenote: there&#039;s a funny thing which caused me a lot of head ache. The field sys.objects.name and the create clause in sys.sql_modules.definition can differ! This happens if you use sp_rename proc.

Sidenote2: If you run ALTER PROC without any actual modifications to the proc, sys.objects.modify_date gets modified still. That is why I check sys.sql_modules.definition field also to prevent false positives.

I hope this helps.]]></description>
		<content:encoded><![CDATA[<p>This is how I&#8217;ve done this on one of our projects and it works like a charm.</p>
<p>SELECT o.modify_date, o.name, m.definition<br />
FROM sys.sql_modules m<br />
JOIN sys.objects o ON o.object_id = m.object_id<br />
WHERE o.modify_date &gt; DATEADD(week, -1, GETDATE())</p>
<p>If you want to filter out only stored procs change sys.objects to sys.procedures.</p>
<p>Sidenote: there&#8217;s a funny thing which caused me a lot of head ache. The field sys.objects.name and the create clause in sys.sql_modules.definition can differ! This happens if you use sp_rename proc.</p>
<p>Sidenote2: If you run ALTER PROC without any actual modifications to the proc, sys.objects.modify_date gets modified still. That is why I check sys.sql_modules.definition field also to prevent false positives.</p>
<p>I hope this helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

