Created
December 13, 2014 17:17
-
-
Save osya/8a37dd509a4b548e5391 to your computer and use it in GitHub Desktop.
Default value for stored procedures parameter have to be constants. You'd need to do the following... #SQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER Procedure [dbo].[my_sp]@currentDate datetime = nullASIF @currentDate IS nullSET @currentDate = getdate() | |
URL: http://stackoverflow.com/questions/470664/sql-function-as-default-parameter-value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment