Ócáid
Mar 31, 11 PM - Apr 2, 11 PM
An ócáid foghlama Fabraic, Power BI, agus SQL is mó. Márta 31 – 2 Aibreán. Bain úsáid as cód FABINSIDER chun $ 400 a shábháil.
Cláraigh inniuNí thacaítear leis an mbrabhsálaí seo a thuilleadh.
Uasghrádú go Microsoft Edge chun leas a bhaint as na gnéithe is déanaí, nuashonruithe slándála, agus tacaíocht theicniúil.
This article describes how to add SQL Server on VM DB (CDC) as an event source in Fabric Real-Time hub.
The SQL Server on VM DB (CDC) source connector for Fabric eventstreams allows you to capture a snapshot of the current data in a SQL Server database on VM. The connector then monitors and records any future row-level changes to the data. Once these changes are captured in the eventstream, you can process this data in real-time and send it to various destinations for further processing or analysis.
sys.sp_cdc_enable_db
. For details, see Enable and disable change data capture.Enable CDC for the database.
EXEC sys.sp_cdc_enable_db;
Enable CDC for a table using a gating role option. In this example, MyTable
is the name of the SQL table.
EXEC sys.sp_cdc_enable_table
@source_schema = N'dbo',
@source_name = N'MyTable',
@role_name = NULL
GO
After the query executes successfully, you enabled CDC in your SQL Server on VM database.
You can get events from an SQL Server on VM DB (CDC) into Real-Time hub using the Data sources page.
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 Database CDC category at the top, and then select Connect on the Azure SQL MI DB (CDC) tile.
Use instructions from the Add SQL Server on VM DB CDC as a source section.
On the Connect page, select New connection.
In the Connection settings section, enter the following values for your SQL Server on VM:
Server: Enter the publicly accessible IP address or domain name of your VM, and then add a colon and the port. For example, if your IP address is xx.xxx.xxx.xxx
and the port is 1433, then you should enter xx.xxx.xxx.xxx:1433
in the Server field. If the port isn't specified, the default port value 1433
is used.
Database: Enter the name of the database that you want to connect to on your SQL Server on VM.
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.
Nóta
Currently, Fabric event streams supports only Basic authentication.
Enter Username and Password for the SQL Server on VM.
Nóta
Don't select the option: Use encrypted connection.
Select Connect at the bottom of the page.
Now, on the Connect page, select All tables, or enter the table names separated by commas, such as: dbo.table1, dbo.table2
.
Select Next.
On the Review + create screen, review the summary, and then select Connect.
To learn about consuming data streams, see the following articles:
Ócáid
Mar 31, 11 PM - Apr 2, 11 PM
An ócáid foghlama Fabraic, Power BI, agus SQL is mó. Márta 31 – 2 Aibreán. Bain úsáid as cód FABINSIDER chun $ 400 a shábháil.
Cláraigh inniuOiliúint
Modúl
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.
Deimhniú
Microsoft Certified: Fabric Data Engineer Associate - Certifications
As a Fabric Data Engineer, you should have subject matter expertise with data loading patterns, data architectures, and orchestration processes.
Doiciméadúchán
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.
View details of streams in Fabric Real-Time hub - Microsoft Fabric
This article shows how to view details of for streams in Fabric Real-Time hub in either detail view or a table view.
Create database shortcut for Azure Data Explorer database - Microsoft Fabric
This article describes how to create a database shortcut for an Azure Data Explorer database.