Home Forums SQL Server 2008 T-SQL (SS2K8) Deleting records from the same table through different sessions RE: Deleting records from the same table through different sessions

  • Hello,

    It might acquire table locks but not necessarily end up in a deadlock situation. You might want to delete records in batches for each organization and so that blocking is minimal and delete from both sessions would run parellely or if your tables are partitioned based on the org_id, then partition switch will be a better solution. It is all trial and error so before you arrive at a conclusion please try the solution that you think is feasible.