SQL Server
BUILDING Source · built and tested, not yet verified against production accounts. Contact us before relying on it.
Overview
Section titled “Overview”PortPilot reads the tables in one schema of a SQL Server database and loads them into your
destination. Tables with a primary key and an updated_at column sync incrementally; the rest
are re-read in full on each sync. Rows are streamed in batches, so memory use stays flat
however large the table.
Works with SQL Server 2016 and later, Azure SQL Database, Azure SQL Managed Instance and Amazon RDS for SQL Server, using a SQL login.
Features
Section titled “Features”| Feature | Supported | Notes |
|---|---|---|
| Incremental sync | Partly | Tables with a primary key and an updated_at column; others are re-read. |
| Captures deletes | No | Records deleted in the source stay in the destination. |
| Custom fields | Yes | Every column of every selected table. |
| Table selection | Yes | Choose which tables to sync. |
| New columns added automatically | Yes | Columns that appear in the source are added to the destination table. |
| Re-sync | Yes | A full refresh re-reads every selected table. |
Before you connect
Section titled “Before you connect”-
Create a read-only login and user for PortPilot:
-- in master (skip on Azure SQL Database if you use a contained user)CREATE LOGIN portpilot WITH PASSWORD = '<strong password>';-- in your databaseUSE <database>;CREATE USER portpilot FOR LOGIN portpilot;GRANT SELECT ON SCHEMA::dbo TO portpilot;On Azure SQL Database you can use a contained user instead:
CREATE USER portpilot WITH PASSWORD = '<strong password>';in the database itself. -
Allow network access. Allowlist PortPilot’s egress IPs (shown on the connection screen) in your firewall or Azure SQL server firewall rules. With a bring-your-own-cloud deployment, allow traffic from your own PortPilot agent’s network instead.
Connect
Section titled “Connect”In the app, go to Connectors → New connector → SQL Server, fill in the fields below and click Test connection.
| Field | Required | Default | Description |
|---|---|---|---|
host |
Yes | — | Server host name, e.g. myserver.database.windows.net. |
port |
No | 1433 |
TCP port. |
database |
Yes | — | Database name. |
user |
Yes | — | SQL login with SELECT on the schema. |
password |
Yes | — | Stored write-only in the data plane’s secret store; PortPilot can’t read it back. |
schema |
No | dbo |
The schema to replicate. One per connector. |
encryption |
No | require |
TLS mode: require, request or off. |
replication_key_columns |
No | ["updated_at"] |
Columns to sync incrementally on, in priority order. [] re-reads every table on every sync. |
Schema
Section titled “Schema”PortPilot replicates your tables as they are: one destination table per source table, same column names, primary key copied from the source. Only base tables in the configured schema (not views). Every other type (nvarchar, datetime2, uniqueidentifier, varbinary, …) lands as a string.
Type mapping (11 source types)
| Source type | Lands as |
|---|---|
bigint | integer |
bit | boolean |
decimal | number |
float | number |
int | integer |
money | number |
numeric | number |
real | number |
smallint | integer |
smallmoney | number |
tinyint | integer |
Any type not listed lands as a string.
Sync behavior
Section titled “Sync behavior”| Table has | Each sync | Write mode |
|---|---|---|
Primary key and an updated_at column of type datetime, datetime2, smalldatetime, datetimeoffset, date or an integer type |
Rows where updated_at >= the previous maximum |
Upsert on the primary key |
| Primary key, no such column | Whole table | Upsert on the primary key |
| No primary key | Whole table | Replace (truncate and load) |
The first sync of every table reads it in full. SQL Server Change Data Capture and Change Tracking are not used.
Common gotchas
Section titled “Common gotchas”- Deletes aren’t replicated. A row deleted at the source stays in the destination.
- One schema per connector. To replicate
dboandsales, create two connectors. Tables keep their bare name downstream, so write the two connectors to different destination schemas or datasets if table names overlap. rowversioncan’t be the cursor. Its values are binary. Use adatetime2column maintained by your application or a trigger.- Binary columns (
varbinary,image) arrive as text representations, not raw bytes. - Entra ID (Azure AD) sign-in isn’t supported yet. Use a SQL login.
- Tables the login can’t read are skipped silently. SQL Server only lists tables the login
has
SELECTon. If a table is missing from the test results, check its grants.