I am using SSMS v17.6 with a SQL Server Express v14.0.1000.169.
When I run the following DELETE
statement:
delete from foo
go
I get the error:
Incorrect syntax near 'go'.
But if I execute a similar SELECT
statement:
select * from foo
go
Then there is no error.
It seems the error happens with any statement that doesn't return results. I have checked the query execution settings in SSMS and the batch separator is set to go. It seems SSMS is sending to the server which it shouldn't do.
I have seen this on multiple machines.