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

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

mcupryk
Yak Posting Veteran

Canada
90 Posts

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

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

nigelrivett
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

USA
1687 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  
 New 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.05 seconds. Powered By: Snitz Forums 2000