I have declared a stored procedure in Sybase, and one of the parameters is of type datetime. Now I want to assign this datetime a default value.
Here's the declaration:
create procedure Procedure
(
@fromDate datetime = getdate()
)
...
However Sybase is giving me an error
Number (102) Severity (15) State (1) Server (SERVER) Procedure (Procedure) Incorrect syntax near '('.
Is it possible to do this? If not, is there a workaround?