Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article describes how to get events from Azure SQL Database Change Data Capture (CDC) into Fabric Real-Time hub.
The Azure SQL Database CDC source connector for Microsoft Fabric event streams allows you to capture a snapshot of the current data in an Azure SQL database. The connector then monitors and records any future row-level changes to this data. Once the changes are captured in the eventstream, you can process this CDC data in real-time and send it to different destinations within Fabric for further processing or analysis.
Note
This source is not supported in the following regions of your workspace capacity: West US3, Switzerland West.
sys.sp_cdc_enable_db
. For details, see Enable and disable change data capture.Note
You can get events from an Azure SQL Database CDC into Real-Time hub in one of the ways:
Sign in to Microsoft Fabric.
If you see Power BI at the bottom-left of the page, switch to the Fabric workload by selecting Power BI and then by selecting Fabric.
Select Real-Time on the left navigation bar.
On the Real-Time hub page, select + Data sources under Connect to on the left navigation menu.
You can also get to the Data sources page from All data streams or My data streams pages by selecting the + Connect data source button in the top-right corner.
On the Data sources page, select Microsoft sources category at the top, and then select Connect on the Azure SQL DB (CDC) tile.
Use instructions from the Connect to an Azure SQL Database CDC source section.
In Real-Time hub, select Microsoft sources on the left navigation menu. You can use the search box to the type your resource name or use filters (Source, Subscription, Resource group, Region) to search for your resource.
In the Source drop-down list, select Azure SQL DB (CDC).
For Subscription, select an Azure subscription that has the resource group with your SQL database.
For Resource group, select a resource group that has your SQL database.
For Region, select a location where your SQL database is located.
Now, move the mouse over the name of the SQL database that you want to connect to Real-Time hub in the list of databases, and select the Connect button, or select ... (ellipsis), and then select the Connect button.
On the Connect page, select New connection.
If you have an existing connection to your Azure SQL Database CDC source, you can select it from the Connection drop-down list, and move on to configuring port and tables.
In the Connection settings section, enter the following values for your Azure SQL database:
Server: Enter the Azure SQL server name from the Azure portal.
Database: Enter the Azure SQL database name from the Azure portal.
Scroll down, and in the Connection credentials section, follow these steps.
For Connection name, enter a name for the connection.
For Authentication kind, select Basic.
Note
Currently, Fabric eventstreams supports only Basic authentication.
Enter Username and Password for the database.
Select Connect.
Now, on the Connect page, do these steps:
Select All tables or enter the table names separated by commas, such as: dbo.table1, dbo.table2
.
For Port, the default value is 1433 and can't be modified.
In the Stream details section to the right, select the Fabric workspace where you want to save the eventstream that the Wizard is going to create.
For eventstream name, enter a name for the eventstream. The wizard creates an eventstream with the selected Azure SQL Database CDC as a source.
The Stream name is automatically generated for you by appending -stream to the name of the eventstream. You can see this stream on the Real-time hub All data streams page when the wizard finishes.
Select Next.
On the Review + connect screen, review the summary, and then select Connect.
On the Review + connect page, if you select Open eventstream, the wizard opens the eventstream that it created for you with the selected Azure SQL Database CDC as a source. To close the wizard, select Finish at the bottom of the page.
In Real-Time hub, select All data streams. To see the new data stream, refresh the All data streams page.
For detailed steps, see View details of data streams in Fabric Real-Time hub.
To learn about consuming data streams, see the following articles:
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Module
Data tracking and synchronization with Azure SQL Database - Training
Azure SQL data tracking module that covers data changes tracking. The module explores tools such as change data capture (CDC) and change tracking.
Certification
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
Documentation
Add Azure SQL Database CDC source to an eventstream - Microsoft Fabric
Learn how to add an Azure SQL Database Change Data Capture (CDC) source to an eventstream.
Add Azure SQL Managed Instance Change Data Capture as a source to eventstream - Microsoft Fabric
Learn how to add an Azure SQL Managed Instance Change Data Capture (CDC) source to an eventstream.
Add SQL Server Change Data Capture as a source to eventstream - Microsoft Fabric
Learn how to add a SQL Server on virtual machine (VM) database (DB)'s Change Data Capture (CDC) feed as a source to an eventstream.