« first day (1502 days earlier)      last day (2816 days later) » 

7:23 PM
Trying to call a stored proc in a select statement as a 1 off and need to it to work on a list of supplied column values.

For example I have a list of orders and I want to change the status code value of their rows by calling the stored proc Close_Order how can I do this for a list of values. the orderID is called in the proc as @orderId and the column name is Orderid and i have 70 or so Orders I feel like this is very simple and I just blanking on the correct syntax to do this
What I have so far that I know is wrong

select 'exec order_close' + @orderid = varchar(OrderId) from order
where orderid in ( value1, value2, value3, etc)
 

« first day (1502 days earlier)      last day (2816 days later) »