The sysdepends table is updated if the objects are altered. Here is a script to help you get started on ALTERing all the views and procedures. The procedure wil create a script which can be copied to a query window and executed to ALTER the objects without really changing them. The real impact is that sysdepends get updated in the process.
--Run this query to create ALTER statements for procedures
--and views. Copy the results to a new query window and
--execute the script. The sysdepends table should be updated
--with all dependencies.
set nocount on
Select replace(text,'create view','ALTER View') + char(10) + 'GO'
From syscomments c
Join sysobjects o
on c.id=o.id
where o.type = 'v'
and encrypted=0
and left(o.name,3) Not In ('sys','dt_')
order by o.name, c.number, c.colid
Select replace(text,'create proc','ALTER PROC') + char(10) + 'GO'
From syscomments c
Join sysobjects o
on c.id=o.id
where o.type = 'p'
and encrypted=0
and left(o.name,3) Not In ('sys','dt_')
order by o.name, c.number, c.colid
Note: You should examine the resultant script to make sure the replace function worked properly. I just created the script and performed limited testing. You may find many ways to enahance it. It should give you a start toward fixing the problems of missing dependencies.
If you want to get the best answer for your question read faq183-874 and thread183-468158.
Terry L. Broadbent - DBA
SQL Server Page: