This is an attempt at making a slightly dynamic query to modify in bulk a CMDB at work. Using SQL Server 2008. I'm trying to update a column with a specific value. I want the table, the column and the ...
SELECT * FROM table1 WHERE fieldStatus IN (@Status) AND (CASE WHEN @Status = 'Open' AND COUNT(@Status) = 1 THEN fieldDate >= GETDATE() END) I hope that makes sense. Anyone know how to test for a multi ...