Hi,
there is an option -ParseGO which splits a file or query into multiple pieces of code and runs each splitted code once at a time.
The problem is that the split doesn't take into account that GO could be in comments.
Would it be possible add an option to Invoke-SQLCmd2 to find and replace any GO inside a comment (especially those starting with /* and ending with */) by a space before actually splitting ?
Some links that could help:
Hi,
there is an option
-ParseGOwhich splits a file or query into multiple pieces of code and runs each splitted code once at a time.The problem is that the split doesn't take into account that GO could be in comments.
Would it be possible add an option to
Invoke-SQLCmd2to find and replace any GO inside a comment (especially those starting with/*and ending with*/) by a space before actually splitting ?Some links that could help: