SQLServer Adapter
This adapter allows you to query SQL Server from REST commands, implement Change Data Capture (CDC) with SQL Server databases and import data into SQL Server.
Configuration Settings
| Name | Description | Default |
|---|---|---|
| Boolean _isDefault | Make this the default configuration. Defaults to true if configName is already the default. | |
| String connectionString | Connection string to the destination database | |
| String defaultDB | Default database to connect to | |
| String appName | The application name | |
| Boolean ssl | True if the connection should be encrypted | |
| Int32 retries | Max connection and execution retries | |
| Int32 defaultTimeout | Default execution timeout for SQL commands | 30 |
Handlers
|
DisablePumpJob
|
Disables a SQLServer Pump Job
details
Arguments
SQL CallEXEC SQLServer.DisablePumpJob 'jobkey' Http Call/bsc/sqlserver/disablepumpjob Output ColumnsThis call does not return data. |
||||||||||||||||||||||||||||||||||||||||
|
EnablePumpJob
|
Enables a SQLServer Pump Job
details
Arguments
SQL CallEXEC SQLServer.EnablePumpJob 'jobkey' Http Call/bsc/sqlserver/enablepumpjob Output ColumnsThis call does not return data. |
||||||||||||||||||||||||||||||||||||||||
|
GetChangeTrackingSetting
ChangeTrackingSetting |
Returns SQL Server Change Tracking database settings if enabled (returns nothing if not configured).
details
ArgumentsSQL CallEXEC SQLServer.GetChangeTracking Http Call/bsc/sqlserver/getchangetrackingsetting Output Columns
|
||||||||||||||||||||||||||||||||||||||||
|
GetChangeTrackingTables
ChangeTrackingTables |
Returns list of tables that have a Primary Key (so that Change Tracking can be enabled)
details
ArgumentsSQL CallSELECT * FROM SQLServer.ChangeTrackingTables Http Call/bsc/sqlserver/getchangetrackingtables Output Columns
|
||||||||||||||||||||||||||||||||||||||||
|
GetFields
Fields |
Returns list of fields for a given table
details
Arguments
SQL CallSELECT * FROM SQLServer.Fields WHERE table = 'table1' Http Call/bsc/sqlserver/getfields Output Columns
|
||||||||||||||||||||||||||||||||||||||||
|
GetTable
table |
Executes a SELECT command on a table as specified by the table parameter
details
Arguments
SQL CallSELECT * FROM SQLServer.table@myTable1 WHERE ID=1 Http Call/bsc/sqlserver/gettable Output ColumnsThis call does not return data. |
||||||||||||||||||||||||||||||||||||||||
|
ListChangeTracking
ChangeTracking |
Lists the tables that currently have ChangeTracking enabled.
details
ArgumentsSQL CallEXEC SQLServer.startChangeTracking 'table1' Http Call/bsc/sqlserver/listchangetracking Output Columns
|
||||||||||||||||||||||||||||||||||||||||
|
ListPumpSchedule
PumpSchedule |
Lists the scheduled Pump operations that were created with EXEC SQLServer.PumpBulk__async commands.
details
ArgumentsSQL CallSELECT * FROM SQLServer.PumpSchedule Http Call/bsc/sqlserver/listpumpschedule Output Columns
|
||||||||||||||||||||||||||||||||||||||||
|
ListTableChanges
TableChanges |
Gets available changes on a specific table since the last sync id.
details
Arguments
SQL CallSELECT * FROM SQLServer.TableChanges WHERE tableName = 'mytable' AND sinceId = 1 Http Call/bsc/sqlserver/listtablechanges Output ColumnsThis call does not return data. |
||||||||||||||||||||||||||||||||||||||||
|
ListTableChangesWithData
TableChangesWithData |
Gets available changes on a specific table since the last sync id including current record data.
details
Arguments
SQL CallSELECT * FROM SQLServer.TableChangesWithData WHERE tableName = 'mytable' AND sinceId = 1 Http Call/bsc/sqlserver/listtablechangeswithdata Output ColumnsThis call does not return data. |
||||||||||||||||||||||||||||||||||||||||
|
PumpBulk
|
Imports the content of a data source into a SQL Server table (BulkImport) using a loopback connection
details
Arguments
SQL Callexec SQLServer.PumpBulk 'enzoloopback', 'localhost', 'SELECT * FROM COVID19.Summary', '[dbo].[schema].[summary]' Http Call/bsc/sqlserver/pumpbulk Output Columns
|
||||||||||||||||||||||||||||||||||||||||
|
Run
|
Execute an SQL statement against the database.
details
Arguments
SQL CallEXEC SQLServer.Run 'SELECT * FROM mytable' Http Call/bsc/sqlserver/run Output ColumnsThis call does not return data. |
||||||||||||||||||||||||||||||||||||||||
|
RunAsJson
|
Execute an SQL statement against the database and returns a JSON document.
details
Arguments
SQL CallEXEC SQLServer.RunAsJson 'SELECT * FROM mytable' Http Call/bsc/sqlserver/runasjson Output Columns
|
||||||||||||||||||||||||||||||||||||||||
|
SetChangeTrackingSetting
ChangeTrackingSetting |
Enable/Disable the SQL Server Change Tracking feature at the database level.
details
Arguments
SQL CallEXEC SQLServer.SetChangeTracking 1 Http Call/bsc/sqlserver/setchangetrackingsetting Output ColumnsThis call does not return data. |
||||||||||||||||||||||||||||||||||||||||
|
StartChangeTracking
ChangeTracking |
Starts Change Tracking on a specific SQL Server table.
details
Arguments
SQL CallEXEC SQLServer.startChangeTracking 'table1' Http Call/bsc/sqlserver/startchangetracking Output ColumnsThis call does not return data. |
||||||||||||||||||||||||||||||||||||||||
|
StopChangeTracking
ChangeTracking |
Stops Change Tracking on a specific SQL Server table.
details
Arguments
SQL CallEXEC SQLServer.stopChangeTracking 'table1' Http Call/bsc/sqlserver/stopchangetracking Output ColumnsThis call does not return data. |
