DBeaver - Version 4.2.1
DBeaver JDBC driver: jTDS or Microsoft
Operating System: Windows 7 / Windows 8.1
Database Server: Microsoft SQL Express 2014
If I try to use SQL Server separator "GO" in SQL commands (to split execution in sections) there is an error message shown:
Query execution failed
Reason: Incorrect syntax near 'GO'.
This does work (with no ";" end-of-command markers):
SELECT '1st'
GO
SELECT '2nd'
GO
This does not work (with ";" end-of-command markers):
SELECT '1st';
GO
SELECT '2nd';
GO
This does not work (with or without ";" end-of-command markers):
CREATE TABLE TestTable(Id INTEGER, Value VARCHAR(80))
GO
ALTER TABLE TestTable ADD Extra VARCHAR(80)
GO
SELECT Extra FROM TestTable
My guess is that "GO" is not implemented as a way of splitting a SQL script into parts on SQL Server connections.
DBeaver - Version 4.2.1
DBeaver JDBC driver: jTDS or Microsoft
Operating System: Windows 7 / Windows 8.1
Database Server: Microsoft SQL Express 2014
If I try to use SQL Server separator "GO" in SQL commands (to split execution in sections) there is an error message shown:
Query execution failed
Reason: Incorrect syntax near 'GO'.
This does work (with no ";" end-of-command markers):
SELECT '1st'
GO
SELECT '2nd'
GO
This does not work (with ";" end-of-command markers):
SELECT '1st';
GO
SELECT '2nd';
GO
This does not work (with or without ";" end-of-command markers):
CREATE TABLE TestTable(Id INTEGER, Value VARCHAR(80))
GO
ALTER TABLE TestTable ADD Extra VARCHAR(80)
GO
SELECT Extra FROM TestTable
My guess is that "GO" is not implemented as a way of splitting a SQL script into parts on SQL Server connections.