Snapshot in Azure data factory copy activity

OGINTZ Marina 105 Reputation points
2024-07-22T15:02:03.2933333+00:00

I'm using copy activity in azdf from Azure SQL DB to CSV file. I saw an option to use snapshot but I don't see this option in Azure SQL DB.

I have few question:

  1. Does it really using snapshot?
  2. Does it delete the snapshot after the copy?
  3. Can I see the snapshot somewhere in the portal?

I'm looking for some more information about this scenario.

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,015 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,814 questions
{count} votes

Accepted answer
  1. Vinodh247 22,951 Reputation points MVP
    2024-07-23T12:07:40.6666667+00:00

    When you enable snapshot isolation on an Azure SQL Database, it does not create a true database snapshot, but rather a logical snapshot of the data. Enabling snapshot isolation in AzureSQL does not create a physical database snapshot. Instead, it maintains a logical snapshot of the data within the transaction log and tempdb to provide a consistent view for transactions. The resources used for snapshots are automatically managed and released when the transaction completes. Basically, when you enable snapshot isolation using the ALTER DATABASE command, it enables a specific isolation level for transactions accessing the database. It does not create a physical snapshot of the entire database, instead when a transaction runs under snapshot isolation:- It sees the data as it existed at the start of the transaction, even if other transactions have modified the data since then.

    • The database engine keeps track of the changes made by active transactions to allow this consistent view.
    • Committed changes from other transactions are visible, but uncommitted changes are not.

    Where are the Snapshots getting stored?

    The data required to provide the consistent view is stored in the database itself, specifically in the transaction log and tempdb database.

    Snapshot Lifecycle:

    Snapshots are maintained until the transaction that requested the snapshot completes. Once the transaction commits or rolls back:

    • The changes made by the transaction are committed or rolled back in the database.
    • The resources used to maintain the snapshot are released and can be reused by other transactions.
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.