Skip to main content

Speediful Configuration Tables

SLAM_Settings table​

The SLAM_Settings table stores configuration settings for Speediful operations. This table is automatically created during setup and contains the following key columns:

Username​

The Username field Stores the currently active Salesforce connection username. This can be set using:

EXEC dbo.SLAM_use_connection_username @username = 'your.salesforce.user@example.com'

default_exists_action​

The default_exists_action column controls the default behavior when Speediful will write to a destination object that already exists, such as during query, replication, metadata operation as well as some utility functions. This default value can be overriden for any Speediful operations using the parameter @exists_action. The value is initialized to 'drop' when the SLAM procedures are first installed in a database, but can be changed to any of the following valid values:

Valid values:

  • 'drop': drop the existing object and create a new one (default)
  • 'rename': rename the existing object by appending a timestamp suffix (format: _YYYYMMDDTHHMMSS_MMM)
  • 'fail': throws a SQL exception if the destination object already exists
  • 'drop-after': like 'drop', but keeps the existing object, renamed, until the run succeeds. See The drop-after option

The drop-after option​

'drop-after' renames the existing object aside, using the same timestamp suffix as 'rename', then creates the destination and writes the new data into it. When the run finishes successfully, Speediful drops the renamed copy, so you end with one table, as with 'drop'.

The difference from 'drop' is what happens when a run fails. The renamed copy stays in place and the error message names it, so the previous data is still there to recover. While a run is in progress, the destination holds only the rows written so far, the same as with 'drop'.

  • While both copies exist, the destination needs up to twice its usual disk space.
  • Each failed run leaves one more renamed copy. Speediful does not remove them; drop them yourself once you no longer need them.

To change the default:

UPDATE SLAM_Settings
SET default_exists_action = 'rename'
tip

Each stored procedure accepts an optional @exists_action parameter that overrides this default value when specified

default_numeric_precision​

The default_numeric_precision column controls how much of a Salesforce numeric value (Currency, Number, Percent, and Geolocation fields) is preserved when it is written to a SQL Server column, for every query, replicate, and table-template operation. Unlike default_exists_action, there is no per-call override; this is an install-wide setting only. The value is initialized to 'high' when the SLAM procedures are first installed, and can be changed to any of the following valid values:

Valid values:

  • 'high': the column is widened to keep as many decimal places as SQL Server's 38-digit maximum allows (e.g. decimal(38, 20) for an AnnualRevenue-shaped field). Digits beyond that are rounded, and a value too small for that scale rounds to 0; see Numeric Precision. This is the default: data accuracy outweighs the wider column.
  • 'display': the column matches the field's declared Setup precision and scale exactly (e.g. decimal(18, 0)). Values are rounded to the declared scale, which can lead to significant loss of precision: Salesforce stores more decimal places than a field's Setup "Decimal Places" shows. See Numeric Precision.
  • 'text': the column is nvarchar(50) and every value Salesforce returns is preserved exactly as text, including values high mode cannot represent as a fixed-scale decimal at all. See Numeric Precision for the consequences of querying a text-mode column with CAST.

To change the default:

EXEC dbo.SLAM_set_numeric_precision 'display'
tip

There is no @numeric_precision parameter on any procedure; this setting has no per-call override. See Numeric Precision for the full explanation and what each mode means for your data.

mapping_template_columns​

The mapping_template_columns field controls what columns appear in the output of the SLAM_mapping_template operation, by default these are:

  • Source Object Name
  • Source Column Name
  • Transformation
  • (then all the Salesforce fields from the Salesforce object)

mapping_template_orderby​

The mapping_template_orderby field controls the sequence of the rows found in the output of the SLAM_mapping_template operation. By default these are in the sequence of the fields as they appear when looking at the object in Salesforce. This can be changed, e.g. to be the alphabetic order of the Salesforce field names.