Viewing 3 posts - 1 through 3 (of 3 total)
How about...
Update table1 set col1 = col1^1
October 23, 2011 at 11:09 pm
#1398504
I agree that if you pass a comma-delimited string to the sproc that the coalesce method I posted will not work. But, if the possible values are a single dept...
August 17, 2007 at 12:06 pm
#727729
Maybe I don't completely understand the problem, but...
Create Procedure FillReport
(
@Dept varchar(20) = null
)
AS
BEGIN
Select [whatever] from [someobject] where Department = COALESCE(@Dept, Department)
END
GO
Pass a null value to the sproc when...
August 17, 2007 at 7:39 am
#727636