Answer: Write below Query.
Below query will return list of user defined tables,stored procedures and functions.
select distinct B.name
from syscomments A
inner join sys.objects B
on A.id = B.object_id
where A.text like '%your_table_name%';
Asked In: Many Interviews |
Alert Moderator