Data Analytics
Zeitspanne
explore our new search
​
Microsoft Fabric: On-Prem SQL Gateway
Microsoft Fabric
10. Sept 2026 18:22

Microsoft Fabric: On-Prem SQL Gateway

Microsoft expert: connect SQL Server to Fabric via On-Premises Data Gateway, Copy pipeline, Lakehouse and secure auth

Key insights

  • On-Premises Data Gateway
    Install the gateway on a Windows host inside your network so Fabric can reach internal SQL Server without opening inbound ports.
    The gateway makes outbound connections to Fabric and forwards requests to your on-prem SQL Server.
  • Microsoft Fabric Connection
    Create a secure SQL Server connection in the Fabric workspace and select the registered gateway so Fabric can authenticate and access the database.
    The connection still requires a database account with the necessary SQL permissions; the gateway does not bypass database security.
  • Copy Data Pipeline to Lakehouse
    Build a Copy Data pipeline that reads from your on-prem Sales.Invoices table and writes into a Fabric Lakehouse destination with schema enabled.
    In the demo, the pipeline copied about 4.1 million rows at ~70 Mbps to show realistic throughput and behavior.
  • Authentication Options
    Supported methods include service principal, SQL authentication, and Windows authentication; choose based on automation and security needs.
    Prefer managed identities or service principals for production automation and better credential management; use SQL or Windows auth only when required by legacy setups.
  • Monitoring and Verification
    Run and monitor the pipeline to watch transfer rates and any errors, then verify row counts and schema in the Lakehouse after load.
    Use pipeline logs and Lakehouse inspections to confirm successful and complete data movement.
  • Best Practices and Integration Patterns
    Reuse a gateway cluster across Fabric services (Data Factory, Dataflow Gen2, Power BI) for centralized management and consistent security.
    Consider mirroring to OneLake for near-real-time analytics and follow network, permission, and authentication best practices when designing your solution.

The newsroom reviewed a recent YouTube tutorial by That Fabric Guy - Bas Land that demonstrates how to connect an on-premises SQL Server to Microsoft Fabric using the On-Premises Data Gateway. The video walks viewers step-by-step through installation, configuration, building a copy pipeline, and verifying data landed in a Fabric Lakehouse. Consequently, the demo gives a practical sense of what a real-world data load looks like, because it copies about 4.1 million rows at roughly 70 Mbps. Overall, the guide aims to help teams move internal data to Fabric without exposing databases to the public internet.

Installation and Gateway Setup

First, the video shows how to install the On-Premises Data Gateway on a Windows machine and register that gateway with a Fabric tenant. The presenter emphasizes outbound connectivity from the gateway host and demonstrates how the gateway acts as a secure intermediary that initiates requests to on-premises SQL Server instances. Next, he configures basic settings and ensures the machine can resolve the SQL Server host and port, which is a common source of connection problems. Therefore, network configuration and DNS resolution must be verified before expecting consistent connectivity.

Then, the tutorial covers gateway clustering for availability and reuse across services. In this part, the video explains how multiple data sources and Fabric services can share the same gateway cluster, making administration easier for IT teams. However, Bas Land also notes that a single gateway host can become a bottleneck if you do not plan capacity and scale properly. As a result, teams should consider high-availability and load distribution early in deployment planning.

Creating Connections and Building Pipelines

Next, the video demonstrates creating a secure SQL Server connection inside the Fabric workspace and selecting the registered gateway. The demo uses the Wide World Importers sample database and copies the Sales.Invoices table into a schema-enabled Lakehouse. After that, the presenter builds a Copy Data pipeline in the Fabric Data Factory environment and configures the Lakehouse destination so the schema and partitions remain consistent. Consequently, viewers can see how pipeline settings affect final storage organization and query efficiency in OneLake.

Additionally, the tutorial runs the pipeline and shows live monitoring of the transfer at roughly 70 Mbps for a 4.1 million-row table. Bas Land explains the pipeline run details, including throughput metrics and error reporting, which helps teams understand how to diagnose stalls or slow transfers. He also inspects the loaded data in the Lakehouse to verify row counts and schema accuracy. Ultimately, this end-to-end example demonstrates both simple copy scenarios and practical monitoring techniques for production jobs.

Authentication and Security Considerations

Importantly, the video covers multiple authentication options: service principal, SQL authentication, and Windows authentication, and advises when to use each method. For production environments, the presenter generally favors a service principal for automation and least-privilege principles, while noting that Windows authentication may suit tightly controlled domain environments. However, each method requires different operational tradeoffs, such as credential rotation, permission scopes, and network constraints. Therefore, teams should weigh convenience against long-term security and compliance demands before choosing an approach.

Moreover, the narration highlights that the gateway does not replace database permissions and that the configured account still needs proper SQL Server access. The video also touches on encryption and secure channels between the gateway and Fabric to ensure data protection in transit. In addition, Bas Land recommends centralizing gateway and connection administration in Fabric to control who can change settings. Consequently, governance around credentials and gateway assignments is critical to reduce accidental exposures.

Performance, Challenges, and Best Practices

The tutorial offers practical performance context by showing a mid-sized transfer and explaining what affects throughput, such as network capacity, gateway host resources, and database I/O. For instance, copying 4.1 million rows at 70 Mbps may run smoothly in a well-provisioned environment, but larger or more complex datasets will require pipeline tuning or parallelism. Meanwhile, schema changes on the source, long-running transactions, and firewall rules are common sources of failed or slow transfers that organizations must monitor. Thus, testing with representative data volumes helps teams identify bottlenecks early.

Finally, Bas Land provides best-practice guidance on choosing between scheduled copy jobs, Dataflow Gen2 transformations, and continuous mirroring into OneLake, and he discusses the tradeoffs among those patterns. While copy jobs are simple and predictable, mirroring supports near-real-time analytics but adds complexity to setup and maintenance. Consequently, teams must balance latency requirements, operational overhead, and security posture when designing their integration approach. In short, the video offers a clear, hands-on pathway while also warning viewers about the operational choices and challenges they will face when moving on-premises data into Microsoft Fabric.

Microsoft Fabric - Microsoft Fabric: On-Prem SQL Gateway

Keywords

on-premises SQL Server Microsoft Fabric connection, Microsoft Fabric data gateway setup, set up on-prem data gateway for SQL Server, configure gateway Microsoft Fabric SQL Server, connect local SQL Server to Fabric, hybrid SQL Server Microsoft Fabric tutorial, secure on-prem SQL connection Fabric, Fabric gateway troubleshooting SQL Server