Perhaps I am not getting SQL Parameters correctly, but this doesn’t work for me. Am I doing something wrong? I get a Incorrect Syntax near the keyword ‘AS’ when I try to save this stored procedure.
ALTER PROCEDURE MyProc
AS
DECLARE @CID int
DELETE FROM Contacts
WHERE ContactID=@CID
RETURN
You should try this –