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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

91 Posts

Posted - 05/19/2011 :  10:45:31  Show Profile  Reply with Quote

Edited by - mcupryk on 06/07/2013 22:09:46

Flowing Fount of Yak Knowledge

United Kingdom
3383 Posts

Posted - 05/19/2011 :  11:34:53  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Not really sure what you want but maybe this helps

select object_name(id)
from syscomments
where text like '%PHONE NUMBER%'

(or you can use the new-fangled views sys.sql_modules)

Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.

Edited by - nigelrivett on 05/19/2011 11:37:02
Go to Top of Page

Bustaz Kool
Flowing Fount of Yak Knowledge

1834 Posts

Posted - 05/20/2011 :  17:26:04  Show Profile  Reply with Quote
Would either of these be of use? sys.dm_sql_referenced_entities or sys.dm_sql_referencing_entities

Elitism is the slur directed at merit by mediocrity. -Sydney J. Harris, journalist (1917-1986)

Edited by - Bustaz Kool on 05/20/2011 17:26:22
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000