Closed sunmingtao closed 3 years ago
Msg 102, Level 15, State 1, Procedure SelectAllCustomers, Line 4 [Batch Start Line 51] Incorrect syntax near 'GO'.
CREATE PROCEDURE SelectAllCustomers @City nvarchar(30) AS SELECT * FROM TestStudent WHERE studentName = @City GO;
Removing the semicolon after GO fixes the issue
CREATE PROCEDURE SelectAllCustomers @City nvarchar(30) AS SELECT * FROM TestStudent WHERE studentName = @City GO
Msg 102, Level 15, State 1, Procedure SelectAllCustomers, Line 4 [Batch Start Line 51] Incorrect syntax near 'GO'.