Forum Discussion

sshetty014's avatar
sshetty014
Frequent Visitor
3 months ago
Solved

Copy Activity Fails with "Incorrect syntax near 'INSERT BULK'" when using SQL Server Linked Service

Hi everyone, I ran into an issue while building a pipeline to copy data from SAP S/4HANA into Microsoft Fabric Warehouse and wanted to check if anyone has faced something similar. Current setup: ...
  • v-echaithra's avatar
    3 months ago

    Hi sshetty014 ,

    Thank you for reaching out to Microsoft Community.

    Although Fabric Warehouse supports the `BULK INSERT` T-SQL statement, using the SQL Server linked service against the Warehouse SQL analytics endpoint is not a fully supported sink pattern for Copy Activity bulk loading.

    The SQL Server connector internally uses SQL server specific bulk insert operations (`INSERT BULK`) which are not fully compatible with the Fabric Warehouse endpoint, resulting in the syntax error.

    For Fabric Warehouse destinations, the recommended approaches are:

    * Use the native Fabric Warehouse connector in Copy Activity
    * Use `COPY INTO` from OneLake/Lakehouse files
    * Use Dataflow Gen2 or Notebook-based loading patterns

    For dynamic multi destination pipelines, the recommended design is usually to branch logic based on sink type rather than reusing the SQL Server connector for Fabric Warehouse targets.

    Thanks.