I send a list of Ids to a stored procedure and would like to `INSERT/UPDATE` them into a table and receive a list of Ids that weren't `INSERTED/UPDATED` so I could display a detailed error to the user. 

How can I accomplish it in this stored procedure?

```
CREATE procedure [dbo].[NET_SET_Int_PriorityAccountsForXMLFeeds_ExpirePriorityByIds]    
   (@IdsList NumericList READONLY)    
AS 
    UPDATE [dbo].[Int_PriorityAccountsForXMLFeeds]    
    SET PromotionExpirationDate = DATEADD(MINUTE,-1,GETDATE())
    WHERE IDS IN (SELECT * FROM @IdsList)

    IF (@@ERROR != 0)
       RETURN -1;

```