Forum Discussion

HamidBee's avatar
HamidBee
Power Participant
1 year ago
Solved

When to Use Pre-Copy Script vs. Source Query in Copy Activity?

Hello everyone,   I’m trying to get a better understanding of the Pre-Copy Script option in Microsoft Fabric's Copy Activity. Given that we already have the option to use a query to p...
  • FabianSchut's avatar
    1 year ago

    The difference between the query and the pre-copy script is that the query is performed on the source, while the pre-copy script is performed on the destination. You can use both within the same activity. You could for example delete all the records from the destination before you write new rows from the source to the destination that you've selected with your query.