Skip to main content
The SQL Server Target Connector enables you to stream data from Popsink directly into a SQL Server database. This connector is ideal for scenarios where you need to store and manage relational data in a SQL Server environment. It supports various data formats and allows for real-time updates to SQL Server tables. By configuring this connector, you can ensure that your SQL Server database is continuously synchronized with data from Popsink, facilitating data integration, reporting, and analysis. It’s particularly valuable for applications that rely on structured data and require robust querying capabilities provided by SQL Server.

πŸ—ƒοΈ SQL Server Target Connection Setup Guide

This guide provides step-by-step instructions to configure a SQL Server as a target connection in Popsink, allowing you to stream and load processed data into your Microsoft SQL Server instance.

Compatible versions

SQL Server 2016 works on a best-effort basis. SQL Server 2025 has not been validated yet.

βœ… Prerequisites

Before configuring the target, ensure you have the following:
  • A running Microsoft SQL Server instance (on-premise or cloud-hosted)
  • A user account with CREATE TABLE, INSERT and UPDATE privileges on the target database
  • Network access from Popsink to the SQL Server host (ensure firewall & security group rules allow inbound traffic)

πŸ”Œ Connection Parameters

When setting up the target in Popsink, you’ll need to provide the following:

πŸ—οΈ Setting Up the Connection in Popsink

  1. Navigate to Targets In the Popsink dashboard, go to Connections > Targets > Add New Target.
  2. Choose SQL Server Select Microsoft SQL Server from the list of target types.
  3. Enter Connection Details Fill in the form using the connection parameters listed above.
  4. Test Connection Click Test Connection to verify that Popsink can reach your SQL Server.
  5. Save Once validated, click Save. You can now use this target in your pipelines.

🧩 Table & Schema Considerations

  • Popsink supports automatic table creation.
  • Source data models must have primary keys if upserts are enabled.
  • Column types: see Data types.

Data types

Popsink creates each table on its first record. Columns are typed from the Avro schema of the source record, read from the Schema Registry, never from the values. When a subscription applies its column mapping, an explicit cast in the mapping takes precedence. An existing table keeps the types it already has. A cast in the column mapping produces: int / long β†’ bigint, float / double β†’ float, bool β†’ bit, date β†’ date, datetime β†’ datetime2, time β†’ time, decimal β†’ decimal(p,s) from its format (decimal(38,9) when none is given), any other cast β†’ nvarchar(max).
Timestamps without a time zone are written as UTC in datetime2 columns; only a Debezium ZonedTimestamp keeps its offset, in datetimeoffset. datetime2 and time keep 7 fractional digits (100 ns). A source decimal with more than 38 digits lands in decimal(38,10). UUIDs are written as nvarchar unless the table already has a uniqueidentifier column. Nested records and maps are not supported as columns: flatten them in the column mapping.

Schema evolution

  • New source columns are added with ALTER TABLE … ADD.
  • Type changes are applied with ALTER COLUMN when the new type is wider. Decimals are widened, never narrowed. If SQL Server refuses the change, the subscription stops on that table instead of skipping data.
  • Dropped source columns are kept in the table, and stay NULL for new rows.
  • With schema evolution off on the subscription, any change that needs an ALTER stops the subscription.

πŸ” Security Notes

  • Ensure the SQL Server user has least privilege access needed to insert and update data only in the required schema/tables.
  • For cloud-hosted SQL Server (e.g., Azure SQL Database), ensure Popsink’s egress IPs are allowlisted in the server firewall.

πŸ› οΈ Troubleshooting