Stored Procedure

Category: Database Questions    |    2 views
Hi,
In my Insert SP, I have 5 local variables:
@MemberID int,
@VideoID int,
@Total money,
@DateRented datetime,
@DateDue datetime

insert into RentalRecord
values (@MemberID,@VideoID,@Total,GETDATE(), DATEADD(dd,5,GETDATE()))

When I try to execute the SP, I get this error:
Procedure or function ’sp_AddRentalRecord’ expects parameter ‘@DateRented’, which was not supplied.

Please advise.

Thanks

Share/Save/Bookmark

1 Star2 Stars
Loading ... Loading ...

0 responses so far!

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word