ALTER PROCEDURE dbo.ModeratorSpamDeleteComment
DECLARE @CommentID int;
AS
BEGIN
DELETE Comments
WHERE CommentsID=@CommentID
END
It says i have an incorrect syntax near “AS” and “Declare”..
I want to deliver the store procedure the CommentID parameter and execute the delete statement..
1 Answer