Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Find SP in 2005

Author  Topic 

Newbie777
Starting Member

20 Posts

Posted - 2010-11-16 : 13:03:53
How do I find a specific sp in all my databases?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-16 : 13:25:20
Run sp_MSforeachDB and pass it a query similar to this: select * from INFORMATION_SCHEMA.ROUTINES where ROUTINE_NAME = 'YourSpNameGoesHere'

Read this for more info: http://weblogs.sqlteam.com/joew/archive/2008/08/27/60700.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -