Looking to see how many sysobjects uses tables from a particular database. I am running a query in sysobjects in DB (and ssis packages) to confirm how many object we would need to review before we embark.. is there a way to identify tables used without code review?? Looking for anything from DATAbASEA with keyword "DATABASEB". use databaseA
SELECT OBJECT_NAME(id)
FROM syscomments
WHERE
[text] like '%DatabaseB%'
--and [text] like '%''F''%'
AND OBJECTPROPERTY(id, 'IsProcedure') = 1
GROUP BY OBJECT_NAME(id)