SQL Tran Docs
  • Overview
    • About
    • Getting started
    • Object lifecycle
    • Why is there no AI inside?
    • Performance considerations
    • Security considerations
    • Assessment
    • Unlocking projects
    • Interface walk-through
    • Translation scenarios
    • Prerequisites for Azure Marketplace deployment
  • Emulation scenarios
    • Emulation in SQL Tran
    • SQL Server to Fabric Warehouse
      • Data types
      • Case sensitivity
      • Cursors
        • Basic cursor loop
        • Cursor types
        • Fetch direction modes
        • Cursors in control flow
        • Nested cursors
        • Data modification cursors
        • Multiple cursors
        • Subqueries and filtering
      • Named procedure parameters
      • Result set limiting
      • MERGE statements
      • Computed columns
      • Temporary tables
      • External tables
      • Identity columns
      • Default values
      • Sequences
      • Unsupported system features
    • Synapse Analytics to Fabric Warehouse
      • Data types
      • Case sensitivity
      • Named procedure parameters
      • Result set limiting
      • MERGE statements
      • Temporary tables
      • External tables
      • Identity columns
      • Default values
      • Materialized views
      • Create table as select (CTAS)
      • Unsupported system features
    • SQL Server to Synapse Analytics
    • Oracle to PostgreSQL
  • Project wizard
    • Source database
    • Target database
    • Wrapping up
  • Projects
    • Project list
    • Overview
    • Workspace
    • Reports
    • Tests
    • Scratch pad
    • Settings
      • Project name
      • Mapping
      • Database connections
    • Navigation
    • Object complexity
    • Static analysis
    • Translation errors
    • Exporting and importing projects
  • Workspace
    • Object tree
    • Data lineage
    • Code
    • Actions
      • Overriding source
      • Overriding target
      • Ignoring objects
  • Tests
    • Workflow
    • Configure SQL Tran
    • Connecting to databases
      • Fabric Warehouse
      • Synapse Dedicated SQL Pool
      • Azure SQL Database, Azure SQL Managed Instance, Microsoft SQL Server
    • Tables
    • Views
    • Procedures
    • Functions
    • Triggers
    • Performance tests
  • Scripter
    • About
    • Supported databases
    • SQL Server
    • Azure SQL
    • Synapse Dedicated Pool
    • Oracle
    • PostgreSQL
    • MySQL
  • Microsoft training - SQL Tran
    • Introduction
    • Licensing plans
    • Deploying and activating
    • Creating a new project
    • Exploring the "Overview" screen
Powered by GitBook
On this page
  • Emulation context
  • Code example (distributed table)
  • Code example (non-distributed table)
  1. Emulation scenarios
  2. Synapse Analytics to Fabric Warehouse

Temporary tables

Emulation context

In Fabric, temporary tables can be standard (non-distributed) or Parquet-based (distributed) — and distributed tables are more performant. Hence, we will be emulating temporary tables as Parquet-based whenever possible.

The exception is going to be when your source temporary tables are using identity attribute.


Code example (distributed table)

Synapse Analytics:

CREATE TABLE #Products (
  ProductID INT,
  ProductName NVARCHAR(100),
  Category NVARCHAR(50)
);

INSERT INTO #Products (ProductID, ProductName, Category)
VALUES (101, 'Keyboard', 'Electronics'),
       (102, 'Desk', 'Furniture');

Fabric Warehouse (generated by SQL Tran):

CREATE TABLE #Products (
    ProductID INT,
    ProductName VARCHAR(200) /* SQLTRAN FIX: NVARCHAR(100) */,
    Category VARCHAR(100) /* SQLTRAN FIX: NVARCHAR(50) */
) WITH (DISTRIBUTION=ROUND_ROBIN);

INSERT INTO #Products (ProductID, ProductName, Category)
VALUES (101, 'Keyboard', 'Electronics'),
       (102, 'Desk', 'Furniture');

Code example (non-distributed table)

Synapse Analytics:

CREATE TABLE #Products (
    ProductID INT IDENTITY,
    ProductName NVARCHAR(100),
    Category NVARCHAR(50)
);

INSERT INTO #Products (ProductID, ProductName, Category)
VALUES (101, 'Keyboard', 'Electronics'),
       (102, 'Desk', 'Furniture');

Fabric Warehouse (generated by SQL Tran):

CREATE TABLE #Products (
    ProductID INT IDENTITY,
    ProductName VARCHAR(200) /* SQLTRAN FIX: NVARCHAR(100) */,
    Category VARCHAR(100) /* SQLTRAN FIX: NVARCHAR(50) */
);

INSERT INTO #Products (ProductID, ProductName, Category)
VALUES (101, 'Keyboard', 'Electronics'),
       (102, 'Desk', 'Furniture');
PreviousMERGE statementsNextExternal tables

Last updated 3 days ago