December 20, 2007 at 12:57 pm
Hi All
One question :Is there any method to find out stored procedure is valid or not valid.
Please help me
Regards,
Shine
December 20, 2007 at 1:16 pm
I don't believe so... other than running it or taking it apart and running the peices...
You could always setup to exec it and run an estimated execution plan on it, but if it creates temp tables, you may get false errors.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 20, 2007 at 1:23 pm
It also really depends on what you mean by valid? You could look at the dependencies to make sure they all exist for that SP.
select object_name(so.id), object_name(depid)
from sysdepends sd
inner join sysobjects so
on so.id = sd.id
where so.xtype = 'P'
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply