开发者

How do I automatically validate stored procedures against the database schema

开发者 https://www.devze.com 2022-12-25 01:03 出处:网络
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 againCan probably script the stored procedure calls out with SET

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消