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

后端 未结 7 505
礼貌的吻别
礼貌的吻别 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:34

    Use the following query

    SET PARSEONLY ON
    --Your query here
    SET PARSEONLY OFF
    

提交回复
热议问题