How to salvage SQL server 2008 query from KILLED/ROLLBACK state?
- by littlegreen
I have a stored procedure that inserts batches of millions of rows, emerging from a certain query, into an SQL database. It has one parameter selecting the batch; when this parameter is omitted, it will gather a list of batches and recursively call itself, in order to iterate over batches. In (pseudo-)code, it looks something like this:
CREATE…