SaveToDB Edition Comparison
Starting SaveToDB 10, the SaveToDB Personal edition is available via the upgrade warranty and unavailable for new purchases.
Here is a sample of the cell change handler available in the SaveToDB Personal and Enterpise editions only:
CREATE PROCEDURE [xls17].[usp_sales_change] @column_name nvarchar(255) = NULL , @cell_value nvarchar(255) = NULL , @cell_number_value int = NULL , @id int = NULL AS BEGIN SET NOCOUNT ON IF @column_name = 'licensee' BEGIN UPDATE dbo17.sales SET licensee = @cell_value WHERE id = @id RETURN END IF @column_name = 'product_id' BEGIN UPDATE dbo17.sales SET product_id = @cell_number_value WHERE id = @id RETURN END END
The SaveToDB add-in calls such handlers on every cell change.
The change handlers can use the predefined parameters like @column_name, @cell_value, or @cell_number_value, and column values using parameters with the same name, like @id.
The change handlers can update underlying tables or raise exceptions to prevent cell changes.