ποΈ 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,INSERTandUPDATEprivileges 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
- Navigate to Targets In the Popsink dashboard, go to Connections > Targets > Add New Target.
- Choose SQL Server Select Microsoft SQL Server from the list of target types.
- Enter Connection Details Fill in the form using the connection parameters listed above.
- Test Connection Click Test Connection to verify that Popsink can reach your SQL Server.
- 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).
Schema evolution
- New source columns are added with
ALTER TABLE β¦ ADD. - Type changes are applied with
ALTER COLUMNwhen 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
NULLfor new rows. - With schema evolution off on the subscription, any change that needs an
ALTERstops 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.