SQL Server to Tunnel
BladePipe supports data replication from SQL Server to Tunnel. View supported migration, sync, verification, and connector capabilities.
| Function | Description |
|---|---|
Schema Migration | If the target schema does not exist, BladePipe will automatically generate and execute CREATE statements based on the source metadata and the mapping rule. |
Full Data Migration | Migrate data by sequentially scanning data in tables and writing it in batches to the target database. |
Incremental Data Sync | Sync of common DML like INSERT, UPDATE, DELETE is supported. |
Table Name Mapping | Support the mapping rules, namely, keeping the name the same as that in Source, converting the text to lowercase, converting the text to uppercase, truncating the name by "_digit" suffix. |
DDL Sync | Supports ALTER TABLE ADD COLUMN and DROP COLUMN. |
Advanced Functions
| Function | Description |
|---|---|
Custom Code | For more information, see Custom Code Processing, Debug Custom Code and Logging in Custom Code. |
Data Filtering Conditions | Support data filtering using WHERE conditions, with SQL-92 as the SQL language. For more information, see Data Filtering. |
Setting Target Primary Key | Change the primary key to another field to facilitate data aggregation and other operations. |
Prerequisites
| Prerequisite | Description |
|---|---|
Permissions for Account | |
Enable SQL Server CDC | Run: exec [your_database].sys.sp_cdc_enable_db |
Parameters
| Parameter | Description |
|---|---|
maxTxsPerIteration | Maximum number of transactions to scan each time in incremental data sync. |
scanParallel | Full data stage: The number of tables to be scanned in parallel. |
eventStoreSize | Size of the cache for parsed incremental events. |
Tips: To modify the general parameters, see General Parameters and Functions.
Prerequisites
| Prerequisite | Description |
|---|---|
Port Preparation | For BladePipe (Docker version), modify the docker-compose.yml port mappings before installing/upgrading after extraction, and open relevant ECS security group ports for remote connection. |
Parameters
| Parameter | Description |
|---|---|
writeParallel | Concurrency level for writing on the other end, significantly impacts migration or synchronization performance. |
batchWriteSize | The maximum data size of a single message. |
deCycle | Prevent circular data replication. |
deCycleFlag | Default marker to prevent circular data replication. |
protocol | Protocol for data transfer in Tunnel. Support HTTP currently. |
uriPrefix | URI prefix for Tunnel data sources. |
contentCompressType | Data compression form for Tunnel data sources. Support DeInflater / GZIP currently. |
dbs | Definition of the data source schema. |
printDataInLog | Enable to print key data to logs for troubleshooting. Enabling this feature may impact performance and data security. |
schemaFormat | Type of Value Schema. |
printCustomCodeDebugLog | Print custom code DEBUG logs (Note that it will print data before and after processing, which may increase disk usage and impact sync performance). This parameter takes effect dynamically and DataJob restart is not required. |
Tips: To modify the general parameters, see General Parameters and Functions.