I have a table that has a column with a default value:
create table t ( value varchar(50) default (\'something\') )
I\'m using a stored
You can use default values for the parameters of stored procedures:
CREATE PROCEDURE MyTestProcedure ( @MyParam1 INT, @MyParam2 VARCHAR(20) = ‘ABC’, @MyParam3 INT = NULL) AS BEGIN -- Procedure body here END
If @MyParam2 is not supplied, it will have the 'ABC' value...