SQL Server Synapse Link Integration Examples

By Tom Nonmacher

The buzz around SQL Server 2019, MySQL 8.0, DB2 11.5, Azure SQL, and Azure Synapse is well justified. The integration of these technologies, particularly SQL Server Synapse Link, can unlock a new level of data analysis and manipulation. This blog post will walk you through examples of SQL Server Synapse Link integration with these technologies.

To start with, let's discuss SQL Server 2019 and Azure Synapse. SQL Server 2019 has a feature called Big Data Clusters, which allows you to analyze big data directly from SQL Server. It's even more powerful when integrated with Azure Synapse, which provides a unified experience for ingesting, preparing, managing, and serving data for immediate business intelligence and machine learning needs. Here's an example of how you can create an external data source in SQL Server 2019 to Azure Synapse:

CREATE EXTERNAL DATA SOURCE AzureSynapse
WITH ( TYPE = HADOOP, LOCATION = 'wasbs://[container]@[account].blob.core.windows.net',
CREDENTIAL = AzureStorageCredential);

Let's not forget MySQL 8.0, a popular open-source database system. To link MySQL with Azure Synapse, you can use the Apache NiFi or Kafka connectors available in Azure. This allows you to seamlessly transfer data between MySQL and Azure Synapse. Please note, this process requires a good understanding of Apache NiFi or Kafka.

Moving on to DB2 11.5, it's a database product from IBM that is designed to store, analyze and retrieve the data efficiently. Integrating DB2 with Azure Synapse is a bit more complex process, but it's worth the effort. You can use Data Gateway to connect DB2 to Azure Synapse. Once connected, you can use either Azure Data Factory or SSIS to load data from DB2 to Azure Synapse.

Azure SQL Database, a fully-managed relational database service, is another technology that can be linked with Azure Synapse. This can be achieved by creating an external table in Azure Synapse that references the Azure SQL Database. Here's a T-SQL example of creating an external table:

CREATE EXTERNAL TABLE [dbo].[AzureSQLTable] (
[Id] [int] NOT NULL,
[Name] [nvarchar](50) NOT NULL,
[Date] [datetime] NOT NULL
)
WITH (DATA_SOURCE = AzureSQLDataSource);

To conclude, SQL Server Synapse Link integration provides a powerful way to bridge the gap between various data platforms and Azure Synapse. It allows you to leverage the power of big data and machine learning in Azure Synapse directly from your existing databases like SQL Server 2019, MySQL 8.0, DB2 11.5, and Azure SQL Database. While the integration involves some complexity, the benefits it brings to your data analysis and manipulation capabilities are immense.

Check out the latest articles from all our sites:




443ADC
Please enter the code from the image above in the box below.