I am running my stored procedure that takes only one argument of type DATE
. The name of the argument is DateParam
EXEC [MyDBNAME].[dbo].[SPName] @DateParam = CONVERT(DATE, GETDATE());
But I get the following error:
Incorrect syntax near the keyword 'CONVERT'.
I have seen this error in many other questions here as well as other forums. But I did not find one that answers the problem. Thanks for looking!