Cursors i CASE statement
Hejsa, kan man ikke sætte en cursor i case statement som fx:cjec.UserID =
CASE
WHEN @UserIDs != '' THEN
OPEN rwPointer
FETCH NEXT FROM rwPointer
WHILE @@FETCH_STATUS = 0
BEGIN
FETCH NEXT FROM rwPointer
END
CLOSE rwPointer
DEALLOCATE rwPointer
ELSE cjec.UserID
END