Error when creating procedure/function/trigger where SQL script contain semicolon character
See original GitHub issueDBeaver - Version 4.2.5 CE DBeaver JDBC driver: Microsoft Operating System: Windows 7 / Windows 8.1 Database Server: Microsoft SQL Express 2014
When Writing SQL scripts for SQL Server it is supported/encouraged to use “;” character as end of command marker.
But when trying to execute script in DBeaver that create procedure, function or triggers and contain “;” error messages are generated.
Error occurred during SQL script execution Reason: SQL Error [102][S0001]: Incorrect syntax near ‘;’.
Execute the SQL Scripts below using SQL EDITOR -> EXECUTE SQLSCRIPT menu choice.
This work OK
CREATE PROCEDURE **TestProc**
AS BEGIN
SELECT 'TestProc'
END
GO
This generate an ERROR
CREATE PROCEDURE **TestProc**
AS BEGIN
SELECT 'TestProc';
END;
GO
Seems that the “;” character after “SELECT ‘TestProc’” make it fail. If run in SQL Server Management Studio or JetBrains DataGrip everything works ok.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (1 by maintainers)
Top GitHub Comments
You need go to dbeaver preferences-sqleditor-sql processing and remove the semicolon on the statements delimiter
Is the ticket still actual for you?