A few years ago I came across a T-SQL technique to validate a stored procedure in SQL Server, but I cannot fi开发者_StackOverflownd it again
Can probably script the stored procedure calls out with SET NOEXEC ON, so it doesn't actually run anything... This would allow you to catch a lot of basic errors (invalid objects, missing fields, etc.)
Is that along the lines of what you were talking about?
If so, there's a CLR mentioned in SQL Mag that seems to do what you're looking for.
精彩评论