Add a SQL Server Destination
Before you begin
Set up a SQL Server connection.
About this task
Destinations are where you send the data extracted from an app form. You can send data from one app to many destinations. Data export rules configures destinations. That is, when you created the data export rule in the SOTI Snap console, the destination receives only data as filtered by that rule is available.
To set up a destination:
Procedure
- On the Configurations page, expand the app and select Configure under the Destinations heading.
- Select Add Destination
- Choose SQL Server as the destination type.
- Choose a SQL Server Connection from the dropdown list.
- Enter a name for the destination. Since you can create many destinations for the same connection, it's important that the destination name is descriptive.
-
Enter an
INSERT INTO
SQL statement into the Insert Script box to specify how to add the data from the app to the database.Important: If you do not add aINSERT INTO
SQL statement, the destination do not receive any exported app data.Tip: You can add macros to the script so the data changes dynamically. Select Macros in the top right corner of the field to see available macros. -
Enter an
UPDATE
SQL statement into the Update Script field. This script will update existing records in the destination if their data changes.If you do not add aUPDATE
SQL statement, modified records are not sent to the destination.Tip: You can add macros to the script so the data changes dynamically. Select Macros in the top right corner of the field to see available macros. - Select Save to save your settings.