>>is it not possible to use a case statement in this way?Always remember: CASE is a *function*, not a statement. It returns a single value based on an expression. It cannot be used to control flow or anything like that. As Tara said, you can still use it, but not the way you are trying.I think what you want is this:insert into CalentryAssignments (EntryID, ClientID, RegionID, DepartmentID)values (@EntryID, case when @parentType=1 then @ParentID else null end, case when @parentType=2 then @ParentID else null end, case when @parentType=3 then @ParentID else null end)