Logging "On Delete Cascade"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bchoi@ueic.com

    Logging "On Delete Cascade"

    Hi. I am trying to log (Not SQL Transaction log) all deleted rows
    into a custome log file after performing "cascade delete".
    I couldn't find any reference for this in SQL manual or News group.
    Byung Choi

  • Erland Sommarskog

    #2
    Re: Logging "On Delete Cascade"

    (bchoi@ueic.com ) writes:[color=blue]
    > Hi. I am trying to log (Not SQL Transaction log) all deleted rows
    > into a custome log file after performing "cascade delete".
    > I couldn't find any reference for this in SQL manual or News group.[/color]

    You would do this from a trigger, getting the deleted rows from the
    virtual table "deleted" .


    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

    Books Online for SQL Server SP3 at
    Get the flexibility you need to use integrated solutions, apps, and innovations in technology with your data, wherever it lives—in the cloud, on-premises, or at the edge.

    Comment

    • metalic

      #3
      Re: Logging "On Delete Cascade"

      Thanks Erland.

      Comment

      • metalic

        #4
        Re: Logging "On Delete Cascade"

        Thanks Erland.

        Comment

        Working...