Notă
Accesul la această pagină necesită autorizare. Puteți încerca să vă conectați sau să modificați directoarele.
Accesul la această pagină necesită autorizare. Puteți încerca să modificați directoarele.
Applies to: ✅ Warehouse in Microsoft Fabric
The Fabric Migration Assistant provides a guided experience for migrating source metadata and data to Fabric Data Warehouse. This guide explains how to migrate metadata from:
- Azure Synapse Analytics or SQL Server by using a DACPAC file
- Teradata by using a .zip archive of
.sqland/or.bteqfiles
Tip
For source-specific planning, see:
Prerequisites
Before you begin, make sure you have the following ready:
- A Fabric workspace with an active capacity or trial capacity.
- Create a workspace or select an existing workspace you want to migrate into. The Migration Assistant creates a new warehouse for you.
- A source metadata file in one of these formats:
- A DACPAC file extracted from Azure Synapse Analytics or SQL Server. A DACPAC contains metadata for database objects, including tables, views, stored procedures, and functions.
- To create a DACPAC from Azure Synapse Analytics, see Extract a Data-tier Application (DAC) from an Azure Synapse dedicated SQL pool in Visual Studio 2022.
- You can also use the Generate Scripts Wizard in SQL Server Management Studio (SSMS), SDK-style database projects with Visual Studio Code, or the SqlPackage command-line utility.
- A zip archive of Teradata
.sqland/or.bteqfiles that contains the object definitions and dependencies for the migration.
- A DACPAC file extracted from Azure Synapse Analytics or SQL Server. A DACPAC contains metadata for database objects, including tables, views, stored procedures, and functions.
To use the AI-assisted migration features of the Migration Assistant to fix migration problems, you need to activate Copilot:
- Your administrator needs to enable the tenant switch before you start using Copilot. For more information, see Copilot tenant settings.
- Your F2 or P1 capacity needs to be in one of the regions listed in Fabric region availability.
- If your tenant or capacity is outside the US or France, Copilot is disabled by default unless your Fabric tenant admin enables the Data sent to Azure OpenAI can be processed outside your capacity's geographic region, compliance boundary, or national cloud instance tenant setting in OneLake catalog > Govern > Configurations > Tenant settings.
- Copilot in Microsoft Fabric isn't supported on trial SKUs. Only paid SKUs (F2 or higher, or P1 or higher) are supported at this time.
- For more information, see Overview of Copilot in Fabric and Power BI.
Copy metadata
In your Fabric workspace, select the Migrate button on the item action deck.
In the Migrate to Fabric source menu, under Migrate to a warehouse, select the source system tile:
- For Azure Synapse Analytics, select Azure Synapse Analytics dedicated SQL pool.
- For SQL Server, Azure SQL Database, or Azure SQL Managed Instance, select SQL Server database.
- For Teradata, select Teradata (Preview).
If the Choose your method page appears, select Upload a file with the source metadata, and then select Next.
On Set the source, select Choose file, select the source file, and then select Next.
In the Set the destination page, provide the name of the Fabric workspace and new warehouse item you want to migrate into. Select Next.
Review your inputs and select Migrate. The Migration Assistant creates a new warehouse item and starts the metadata migration.
Note
When using the Migration Assistant, the new warehouse has case insensitive collation, regardless of the default warehouse collation setting.
During this step, the Migration Assistant translates T-SQL metadata to supported T-SQL syntax in Fabric Data Warehouse. After the metadata migration finishes, the Migration Assistant opens. You can access the Migration Assistant at any time by using the Migration button in the Home tab of the warehouse ribbon.
Review the metadata migration summary in the Migration Assistant. You see the count of migrated objects and the objects that need to be fixed before they can be migrated.
Select Show migrated objects to expand the section and see a list of objects that you successfully migrated to your Fabric warehouse.
The State column indicates if the Migration Assistant adjusted the object's metadata during the translation to Fabric Data Warehouse. For example, you might see that certain column datatypes or T-SQL language constructs are automatically converted to the ones that are supported in Fabric. The Details column shows the information about the adjustments that the Migration Assistant made to the objects.
Select any object to see the adjustments that the Migration Assistant made during migration.
Open the metadata migration summary in full screen view for better readability. Apply filters to view specific object types.
Fix problems by using Migration Assistant
Some database object metadata might fail to migrate. Commonly, this failure occurs because the Migration Assistant couldn't translate the T-SQL metadata into those that are supported in Fabric Data Warehouse or the translated code failed to apply to T-SQL.
Let's fix these scripts with help from the Migration Assistant.
Select the Fix problems step in the Migration Assistant to see the scripts that failed to migrate.
Select a database object that failed to migrate. A new query opens under the Shared queries in the Explorer. This new query shows the metadata definition and the adjustments that were made to it as automatic comments added to the T-SQL code.
Review the comments in the beginning of the script to see the adjustments that were made to the script.
Review and fix the broken scripts by using the error information and documentation.
To use Copilot for AI-powered assistance in fixing the errors, select Fix query errors in the Suggested action section. Copilot updates the script with suggestions. Mistakes can happen as Copilot uses AI, so verify code suggestions and make any adjustments you need.
Select Run to validate and create the object.
The next script to fix opens.
Continue to fix the rest of the scripts. You can choose to skip fixing scripts that you don't need during this step.
When all desired metadata is ready for migration, select the back button in the Fix problems pane to return the top-level view of the Migration Assistant. Check the 2. Fix problems step in the Migration Assistant.
Copy data by using Migration Assistant
Copy data helps with migrating data used by the objects you migrate. You can use a Fabric Data Factory copy job to do it manually, or follow these steps for the copy job integration in the Migration Assistant.
Select the Copy data step in the Migration Assistant.
Select Use a copy job.
Assign a name to the new job, then select Create.
On the Connect to data source page, provide the connection credentials for your source system. Select Next.
On the Choose data page, select the tables you want to migrate. Select Next.
In the Choose data destination page, choose your new Fabric warehouse item from the OneLake catalog. Select Next.
In the Map to destination page, configure each table's column mappings. Select Next.
In the Copy job mode page, choose the copy mode. Choose a one-time full data copy (recommended for migration), or a continuous incremental copying. Select Next.
Review the job summary. Select Save + Run.
When the copy job finishes, check the 3. Copy data step in the Migration Assistant. Select the back button at the top to return to the top-level view of the Migration Assistant.
Reroute connections
In the final step, reconnect the data loading and reporting platforms so that their connections point to your new Fabric warehouse.
Identify connections on your existing source warehouse.
- On a SQL Server instance, you can use dynamic management views, for example:
SELECT s.program_name , s.login_name , c.client_net_address FROM sys.dm_exec_sessions AS s INNER JOIN sys.dm_exec_connections AS c ON s.session_id = c.session_id WHERE s.session_id >= 50 --retrieve only user spids and s.session_id <> @@SPID; --ignore myself- In Azure Synapse Analytics dedicated SQL pools, you can find session information, including the source application, connected user, connection origin, and authentication method:
SELECT DISTINCT CASE WHEN len(tt) = 0 THEN app_name ELSE tt END AS application_name ,login_name ,ip_address FROM ( SELECT DISTINCT app_name ,substring(client_id, 0, CHARINDEX(':', ISNULL(client_id, '0.0.0.0:123'))) AS ip_address ,login_name ,isnull(substring(app_name, 0, CHARINDEX('-', ISNULL(app_name, '-'))), 'h') AS tt FROM sys.dm_pdw_exec_sessions ) AS a;Update the connections to your reporting platforms to point to your Fabric warehouse.
Test the Fabric warehouse with some reporting before rerouting. Perform comparison and data validation tests in your reporting platforms.
Update the connections for data loading (ETL/ELT) platforms to point to your Fabric warehouse.
- For Power BI/Fabric pipelines:
- Use the List Connections REST API to find connections to your old data source, the Azure Synapse Analytics dedicated SQL pool.
- Update the connections to the new warehouse by using the Manage Connections and Gateways page in Settings.
- For Power BI/Fabric pipelines:
When you finish, check the Reroute connections step in the Migration Assistant.
Congratulations! You're now ready to start using your new warehouse.