Ways to validate T-SQL queries?

前端 未结 6 1877
逝去的感伤
逝去的感伤 2021-01-03 10:48

I have access to an Access database and within that database are fields filled with TSQL queries. These queries are processed by T-SQL on a server. So when I write these SQL

6条回答
  •  一整个雨季
    2021-01-03 11:28

    You can parse your T-SQL to check for valid syntax by executing it on the SQL Server machine with a SET PARSEONLY ON as the first line of your script. It will not validate table or field names, but will provide you with any syntax errors.

提交回复
热议问题