Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL 2005 - validate SPs and Functions in batch
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01443399
Message ID:
01444251
Views:
38
>Question: Hi
>
>I want to create a stored procs that will validate all the stored procs and the Functions (and maybe views) to ensure they are still valid. I need to return the result of this validation in a resultset.
>
>How can I loop through those objects, check the validity of the syntax and retrieve the result?
>
>An example of what I want to catch is if a table have one of its column removed, I want to find all the Stored Procs that will fail. Please don't tell me to use the "Check Dependency" button as I need to do it in batch.

Hello!

I think this is what you want:
http://sqldev.wordpress.com/2008/04/06/which-of-your-stored-procedures-are-no-longer-valid/

I used something similar to see which one should be cleaned out

-R!
Ricardo A. Parodi
eSolar, Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform