I am new to sql server and learning store procedure
i m creating store procedure for fetching data of perticuler ID
as follow
- CREATE PROCEDURE SelectByID @ID INT
- AS
- BEGIN
-
- SELECT *
- FROM EmployeeDetails
- WHERE EmployeeID = @ID
-
- RETURN
- END
-
- GO;
there is problem while execution
Exec SelectByID ID = "4";
Please help me out it is showing error like "Incorrect Syntax near '=' ".