I am trying to execute a stored procedure but getting following error:
Procedure or function ‘SP_DELETE_DESIGN_PARAMETERS’ expects parameter ‘@DESIGN_ID’, which was not supplied.
Below is my stored procedure.
I am trying to execute it in SQL need result in table.
CREATE PROCEDURE SP_DELETE_DESIGN_PARAMETERS
@DESIGN_ID INT
AS
BEGIN
Delete From Design_Parameters where Design_ID = @DESIGN_ID
END
exec SP_DELETE_DESIGN_PARAMETERS
I know I am missing some very easy points. I would appreciate any help into this.
I am using SQL Server 2008 R2 and VS2010 with VB.Net
Thanks 🙂
When you exec your stored procedure you need to pass it the @DESIGN_ID parameter it expects.
where 123 is the ID you want to pass to the stored procedure