We are using SSIS package to execute the following statement.
SQL statement
delete from ABC
OUTPUT DELETED.[ABC_Id], 5
into XYZ (OId, OCode)
where ([ABC_Id] = ?)
Column Types
ABC_Id: uniqueidentifier
OCode: int
OId: uniqueidentifier
Currently the above query is taking 2 min for 100'000 records. Can anybody provide me with any hints on how to speed up the above statement?