Click here to Skip to main content
16,020,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello:

I am trying to execute stored proc but getting following error:

Procedure or function 'SP_DELETE_DESIGN_PARAMETERS' expects parameter '@DESIGN_ID', which was not supplied.

Below is my stored proc:
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 SQL2008 R2 and VS2010 with VB.Net

Thanks :)
Posted

1 solution

exec SP_DELETE_DESIGN_PARAMETERS (pass your @DESIGN_ID here)
for exp:

exec SP_DELETE_DESIGN_PARAMETERS 111
 
Share this answer
 
Comments
Joy1979 19-Dec-12 12:01pm    
Thanks for help. I have 1000 rows in Design_ID column and If I need to display entire data should I use : exec SP_DELETE_DESIGN_PARAMETERS @DESIGN_ID only? Please advise.
Member 9581488 19-Dec-12 12:12pm    
Your stored procedure is deleting record when you pass @DESIGN_ID.
if you want to display data then you should use select query to return the result after deleting particular row from the table.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900