In SSMS, running SQL that does not return a row with go between statements gives an error

I am using SSMS v17.6 with SQL Server Express server version 14.0.1000.169. if i print

delete from foo go 

I get an error message:

`Invalid syntax next to 'go'.

but if I print

 select * from foo go 

Then there is no mistake. It seems that an error occurs with any statement that does not return results. I checked the query execution parameters in SSMS and the batch separator is set to work. SSMS seems to be sending a server, which it should not do.

I see this on several machines.

+5
source share

Source: https://habr.com/ru/post/1276280/


All Articles