Before you configure the connection to the SQL database with the , make sure that you already executed the steps for establishing an SQL connection:
Step 1: Set up the PC on which you intend to install the SQL Gateway.
Step 2: Set up your SQL database.
Step 3: Install the SQL Gateway.
To configure a connection to a database, you first have to configure a general
for . In a second step, configure one or more to specific databases that are accessible via the .This procedure describes how to define the access to a database server:
Step |
Action |
Remark |
---|---|---|
1 |
In the SQL Gateway, right-click the node in the tree structure on the left-hand side and execute the command . tab of the |
Result: A new subnode with a default name is created. |
2 |
Enter a unique in order to identify this database server. |
– |
3 |
Select from the list. |
After you have selected as , the configuration parameters described in this chapter are displayed. |
4 |
Enter the SQL Server instance. in order to identify the |
The has the format:
If the SQL Server is running on the same PC as the SQL Gateway, enter
If the SQL Server is the default instance, leave the For a detailed description of the address formats, refer to your SQL Server documentation. |
5 |
Select the . |
If the is set to , the parameters and are displayed. |
6 |
As SQL Server login to be used. , enter the name of the |
– |
7 |
Enter the SQL Server login to be used. , enter the password of the |
– |
8 |
Click the button in order to verify whether the connection to the database server can be established with the parameters configured.: A message is displayed indicating the result of the test. |
– |
This procedure describes how to create a connection to a specific database:
Step |
Action |
Result/Remark |
---|---|---|
1 |
In the SQL Gateway, right-click the node in the tree structure on the left-hand side and execute the command . tab of the |
Result: A new subnode with a default name is created. |
2 |
Enter a unique in order to identify this database connection. |
Make sure that exactly the value of the parameter is used in the client configuration:The element wsDbConnectionName configured in the EcoStruxure Machine Expert SqlRemoteAccess library must have the identical value as the parameter . |
3 |
From the list, select the database server that hosts the database you want to connect to. |
The list contains entries for those servers that are defined under the node.After you have selected a database server as , the configuration parameters described in this chapter are displayed. |
4 |
Enter the of the database. |
– |
5 |
In order to add further parameters to the configuration of your database connection, click the button and activate the parameters of your choice in the dialog box. |
Result: After you have confirmed your selection with , the selected parameters will be displayed in the editor and can be configured. |
6 |
Click the button in order to verify whether the connection to the database can be established with the parameters configured. |
Result: A message is displayed indicating the result of the test. |