Adrian Hills 7/1/2010

Validating an SQL query programmatically, with gotcha

Read Original

This technical article details how to use the SET NOEXEC statement in T-SQL to compile and validate the syntax of a query without executing it. It highlights a specific 'gotcha' in SQL Server 2008 where the command fails to validate object names (e.g., non-existent tables) as documented, contrasting it with SQL Server 2005's correct behavior. The post also mentions the SET FMTONLY alternative for metadata retrieval.

Validating an SQL query programmatically, with gotcha

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week