Add a SQL Server application
SQL Server
applicationFor users that have IIoT (Industrial Internet of Things) applications or solutions using
SQL Server®
, FactoryTalk Edge Gateway
provides a method to collect information from Rockwell Automation
and third-party sources and send it to a SQL Server
. FactoryTalk Edge Gateway
facilitates creating objects that are required in SQL Server
to represent the model, which reduces the time for deploying a SQL Server
application.To communicate with the
SQL Server
, add a SQL Server
application in FactoryTalk Edge Gateway
, and configure and deploy the application. During configuration of a SQL Server
application, models selected from the Models
dialog box appear in Preview
as a hierarchical structure of SQL Server
.Before you begin, create a username for the database and set permissions using the user interface in
SQL Server
Management Studio.To add a
SQL Server
application- In the top-right corner, selectOnlineto go online with the gateway.FactoryTalk Edge Gatewaydisplays a green banner:Gateway Connection: Online.
- SelectData Flow>Applications.
- To add the first application, selectAdd Application.
- To add a subsequent application, selectAdd
.
- FromSelect Application, select an application
- SelectNext.
- Set these parameters:
- Application Name.Defines the application name.
- Server Name. Defines the name or IP Address of the server host.
- SQL Server Instance Name.Enter the name of theSQL Serverinstance.
- The SQL Server Browser service must be running anytime the SQL Server instance name is the connection method. If you enter information in both SQL Port and SQL Server Instance Name,FactoryTalk Edge Gatewayuses the SQL Server instance name. To configure and debug the SQL Server, see Microsoft SQL Server technical documentation.
- SQL Port.Enter a port number forSQL Serverif not using the standard 1433 port number.
- Database Name.Indicates the communication port between theSQL Serverand the gateway.
- Table Name.Enter the name of a table already in use byFactoryTalk Edge Gatewayor enter the name of a new table. If the table does not exist,FactoryTalk Edge Gatewaycreates the table. Only use tables thatFactoryTalk Edge Gatewaycreates.
- Domain.Enter domain or workgroup name to connect toSQL Serverby usingWindowsauthentication. Leaving this field blank usesSQL Serverauthentication.
- Username. Enter the specific username for the database. Recommended practice is to create a username with the correct access and permissions for the database to use with theFactoryTalk Edge GatewaySQL Server endpoint.
- Password.Enter the password associated with the username.
- Encrypt.Encrypt the connection to the SQL server.
- Enable Fire Insert Trigger.Enable the execution of database triggers on bulk insert of data to SQL table fromFactoryTalk Edge Gateway.
- Store and Forward.Enables the storage of data entering the application in a database on the gateway. This setting also functions as a buffer for data entering the store database at higher speeds than the data is forwarded to the application. At each configured Fetch Interval, a maximum amount of data fetched from the store database is 256 KB.SelectStore and Forwardto enable theMaximum store size (bytes)andFetch Interval (ms)settings.In case connectivity is lost to the external application, havingStore and Forwardenabled prevents periods of lost data toSQL Server.Store and Forwardstores data in the database until the connection is restored.
- Aggressive Database Cleaning. Select to delete 50% of the oldest data from the store when maximum store size is exceeded.
- Maximum store size (bytes). This setting defines the maximum size of the store database on the gateway, in bytes. When the maximum store size is reached, the oldest data is deleted to make space for new application data. SelectStore and Forwardto enable this setting.
- Fetch Interval (ms).This setting defines the interval of time to egress (that is, forward) data from the store database, in milliseconds. Data continues to be egressed to theThingWorxapplication until the store database is empty. When egress fails, the data remains in the store database. SelectStore and Forwardto enable this setting.
- Domain.Enter to connect toSQL ServerusingWindowsauthentication. The default value isSQL Serverauthentication. This field is optional.
Provide Feedback