getDate() --- SQL Server --- Stored Proc call
843854Feb 18 2002 — edited Feb 19 2002When you call stored procedure from SQL Server, how do you pass parameter for system date. I would like to pass getDate() as a paramter (like SYSDATE in Oracle) . It seems SQL Server doesn't like that.
However Oracle accepts SYSDATE as a paramter for stored proc call.
My question is as...
String qrt = "{ call me.myProc1( param1, param2, getDate() ) }" ;
Here getDate() as a one of its paramter gives problem.
Is there any other way to specity for System date.