Cascading Delete

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Doug Serie

    Cascading Delete

    I use cascading delete on my SQL Server Database. I am experiencing a
    long query time on my highest level delete, 10 minutes. If I delete
    from each table manually and then delete the parent, I will usually be
    done in less than a minute. Any suggestions?
  • Erland Sommarskog

    #2
    Re: Cascading Delete

    Doug Serie (dserie@charter .net) writes:[color=blue]
    > I use cascading delete on my SQL Server Database. I am experiencing a
    > long query time on my highest level delete, 10 minutes. If I delete
    > from each table manually and then delete the parent, I will usually be
    > done in less than a minute. Any suggestions?[/color]

    Did you implement the cascading delete by triggers or by referential
    integrity?

    In either case, care to share the relevant code and table definitions,
    including indexes?


    --
    Erland Sommarskog, SQL Server MVP, sommar@algonet. se

    Books Online for SQL Server SP3 at
    SQL Server 2025 redefines what's possible for enterprise data. With developer-first features and integration with analytics and AI models, SQL Server 2025 accelerates AI innovation using the data you already have.

    Comment

    Working...