ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    SQL Log of a truncate action

    IT Discussion
    sql server
    2
    4
    901
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • GreyG
      Grey
      last edited by scottalanmiller

      Is there a specific place to see evidence that a truncate action was performed as part of a backup from within SQL?

      1 Reply Last reply Reply Quote 1
      • NashBrydgesN
        NashBrydges
        last edited by

        The "truncate" is essentially a transact-sql. Is your SQL db setup to track all historical SQL executions? That table is where I would look first.

        GreyG 1 Reply Last reply Reply Quote 0
        • GreyG
          Grey @NashBrydges
          last edited by

          @nashbrydges said in SQL Log of a truncate action:

          The "truncate" is essentially a transact-sql. Is your SQL db setup to track all historical SQL executions? That table is where I would look first.

          How would I do such a thing as setting up the tracking?

          NashBrydgesN 1 Reply Last reply Reply Quote 0
          • NashBrydgesN
            NashBrydges @Grey
            last edited by

            @grey This might help get you started. There are 2 types of change tracking for MS SQL. Pick the one most appropriate for your scenario.

            https://docs.microsoft.com/en-us/sql/relational-databases/track-changes/track-data-changes-sql-server

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post