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
    Accelerate your AI application's time to market by harnessing the power of your own data and the built-in AI capabilities of SQL Server 2025, the enterprise database with best-in-class security, performance and availability.

    Comment

    • metalic

      #3
      Re: Logging "On Delete Cascade"

      Thanks Erland.

      Comment

      • metalic

        #4
        Re: Logging "On Delete Cascade"

        Thanks Erland.

        Comment

        Working...