Support DESK

Follow

S4.9 - Table Triggers and CreateUniqueRefField

Previous Article matchIT SQL Index Next Article 

4.9.1      msp_CreateTableTriggers

 

Input Parameters:

  • Configuration file – the file path of the configuration file to be used when this procedure is run.
  • Datasource ID – specifies the data source to be used within the configuration file, which contains database connection string and table/column mappings.

Creates dynamic key update triggers on each table defined in the specified data source in the specified configuration file. This means that the keys table for the selected datasource will automatically be updated should records in the source data be modified in some way.

 

4.9.2      msp_DeleteTableTriggers

 

Input Parameters:

  • Configuration file – the file path of the configuration file to be used when this procedure is run.
  • Datasource ID – specifies the data source to be used within the configuration file, which contains database connection string and table/column mappings.

Deletes dynamic key update triggers on each table defined in the specified data source in the specified configuration file.

4.9.3      msp_GenerateSingleKeys

 

Input Parameters:

  • Configuration file – the file path of the configuration file to be used when this procedure is run.
  • Datasource ID – specifies the data source to be used within the configuration file, which contains database connection string and table/column mappings.
  • Record ID – unique ref of the record to update the keys for.
  • Table Name – name of the keys table to be updated.
  • Action – “update” or “delete”

 

This method is called by the key update triggers on tables defined in the data source.  It updates, creates or deletes the keys entry(s) for the specified record in the specified data source.

 

4.9.4      msp_CreateUniqueRefField

 

Input Parameters:

  • Configuration file – the file path of the configuration file to be used when this procedure is run.
  • Datasource ID – specifies the data source to be used within the configuration file, which contains database connection string and table/column mappings.
  • Table name – table in which to create the primary key column.
  • Column name – name of the column to create.

Creates a primary key column with a specified name within the named table in the data source in the given datasource.

 

Previous Article matchIT SQL Index Next Article

 

Was this article helpful?
0 out of 0 found this helpful

0 Comments

Please sign in to leave a comment.