I have a stored procedure that is to delete all records for an order. The delete statement does not fail, but doesn't remove all of the records I expect it to remove. The statement in the SP is literally:
DELETE
FROM Order_Picked_Items
WHERE (Site = @m_site)
AND (Order_Num = @m_order_number)
The PK on the table is Site, Order_Num and a Line_Num and is non-clustered.
The table has a delete trigger that copies the deleted records to an audit table in another database, but nothing else "strange".
Server Info:
- SQL 2000 (no service packs @@VERSION: 8.00.194)
- Windows NT 4.0 (SP 6)
Lately, with orders with 150+ line-items, only 1 or 2 records are removed by this statement... Anyone know why SQL would not remove all fo the records?
Thanks in advance...
DELETE
FROM Order_Picked_Items
WHERE (Site = @m_site)
AND (Order_Num = @m_order_number)
The PK on the table is Site, Order_Num and a Line_Num and is non-clustered.
The table has a delete trigger that copies the deleted records to an audit table in another database, but nothing else "strange".
Server Info:
- SQL 2000 (no service packs @@VERSION: 8.00.194)
- Windows NT 4.0 (SP 6)
Lately, with orders with 150+ line-items, only 1 or 2 records are removed by this statement... Anyone know why SQL would not remove all fo the records?
Thanks in advance...