• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

Need to Find All References To Specific Column

I'm looking for a way to find ALL references to a specific column name across ALL databases in my SQL Server 2005 instance.

I'm specifically interested in tracking down any references top the column name in the following database objects  - procedures, udfs, views and jobs.

 
0
raymurphy
Asked:
raymurphy
2 Solutions
 
AmmarRCommented:
hi

you have this simple and nice tool

http://www.sqldigger.com/

or use this script from http://snippets.dzone.com/posts/show/3905


declare @search varchar(50)
SET @search = 'searchterm'

SELECT    
     ROUTINE_NAME,
     ROUTINE_DEFINITION
FROM    
    INFORMATION_SCHEMA.ROUTINES
WHERE    
    ROUTINE_DEFINITION LIKE '%' + @search + '%'
ORDER BY
    ROUTINE_NAME

Open in new window

0
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
raymurphyAuthor Commented:
Thanks for both suggestions ....
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Tackle projects and never again get stuck behind a technical roadblock.
Join Now