Edit

Share via


Load data with Dataflow Gen2 into SQL database in Microsoft Fabric

Applies to:SQL database in Microsoft Fabric

Fabric Dataflow Gen2 allows you to transform data while moving it. This article is a quick orientation for using dataflows with SQL database in Fabric, one of several options to copy data from source to source. For comparison of options, see Microsoft Fabric decision guide: copy activity, dataflow, or Spark.

Fabric Dataflow Gen2 supports many configurations and options, including scheduling, this article's example is simplified to get you started with a simple data copy.

Prerequisites

Get started with Fabric Dataflow Gen2

  1. Open your workspace. Select + New Item.
  2. Select Data Flow Gen 2 from the menu.
  3. Once the new Data Flow opens, select Get Data. You can also select the down arrow on Get data and then More.
  4. Pick your Fabric SQL database from the OneLake list. It will be the source of this Data Flow.
  5. Pick a table by checking the box next to it.
  6. Select Create.
  7. You now have most of your data flow configured. There are many different configurations you can do from here to get the movement of data setup to meet your needs.
  8. Next, we need to configure a destination. Select the plus button (+) next to Data destination. Screenshot of the Data destination plus button to Add a data destination in Fabric Dataflow Gen2.
  9. Select SQL database.
  10. Select Next. If Next isn't enabled, select Sign-in to reauthenticate.
  11. Select your destination target.
    1. Leave the New Table button selected.
    2. Select a SQL database name in the object listing as the destination to copy the table.
    3. Give your new table a name. Screenshot of the Choose destination target window from the Fabric portal.
  12. Select Next.
  13. Review the settings and options available. Use Automatic Settings.
  14. Select Next. You now have a complete data flow.
  15. Select Publish. When the Data Flow publishes, it refreshes the data. That means as soon as the data flow is published you'll see it refreshing. Once it finishes refreshing, you'll see your new table in your database.