Using Optional parameters when incoming value is null?
问题 I have a stored procedure that looks like the following. Let's say I call the procedure usp_Exclusion 'Joe', null, 'Bob' , what would I need to do in the stored procedure so that the null value changes to a string (in this case, '')? Unless it's the only way, I don't want to go through every parameter and set to a string if it's null. ALTER procedure dbo.usp_Exclusion ( @exclude1 varchar(100) = '', @exclude2 varchar(100) = '', @exclude3 varchar(100) = '' ) as declare @table table ( EmpName