Validating an SQL query programmatically, with gotcha
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser