I have a stored procedure with attributes like this:
CREATE PROCEDURE [sp_INUSAV_BASE](
, @dUSAV_DAT DATETIME = NULL
, @dUSAV_DFR DATETIME = NULL
, @dUSAV_DTO DATETIME = NULL
I am trying to call this procedure from SSMS with:
exec sp_inusav_base @dUSAV_DAT = getdate()
Which is giving me error:
Why is that error? I've also tried to call like this:
exec sp_inusav_base @dUSAV_DAT = (SELECT getdate())
But this is also giving me error:
Why is that?