How to get list of database objects for finding specific tables used in storedproceure or functions

select distinct B.name from syscomments Ainner join sys.objects B on A.id =B.object_id where A.text like '%tablename%'

Comments

Popular posts from this blog

How to Convert Word Document to PDF using C#

Loop Through Dates in SQL