How can I programmatically check (parse) the validity of a TSQL statement?

后端 未结 7 492
礼貌的吻别
礼貌的吻别 2020-12-04 10:25

I\'m trying to make my integration tests more idempotent. One idea was to execute rollback after every test, the other idea was to some how programatically parse the text,

7条回答
  •  抹茶落季
    2020-12-04 10:58

    SET PARSEONLY : Examines the syntax of each Transact-SQL statement and returns any error messages without compiling or executing the statement.

提交回复
热议问题