SqlQuantumLeap / SimpleSqlExec

Lightweight command-line utility to execute queries on SQL Server in place of SQLCMD

Home Page:https://SqlQuantumLeap.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Batch terminator is used to split even when located inside a comment.

iCodeSometime opened this issue · comments

Script to reproduce:

/* 
  Instructions to use this stored procedure:
  exec stored_procedure arg1, arg2
  go
*/
create procedure stored_procedure
-- etc

Sometimes there may be a go within a comment - most often as some kind of documentation.
These should not be recognized as a batch separator.