Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA Application Server
  • AVEVA Application Server Tech Notes

Use the SQLData Object to Read and Update a SQL Database

Last updated: March 5th, 2025

Description

  • Author: Brian Schneider
  • Published: March 5th, 2025

Details:

Description

Use the SQLData object to read and update data from a SQL Server Database

Problem Statement

User would like to know how to setup and use the SQLData object to connect to and Navigate a SQL Server Database

Solution Details

To demonstrate how the object works I have created the following SQL Database called SQLDATATEST with 4 records included in it.

Step 1) Create a New Instance of the SQLData template by right clicking on it and choosing New \ Instance.

Step 2) Double click the new SQLData object in order to configure it. In this example I have called the object SQLData_Joe

Step 3) Under the Database tab, choose the connection settings and select the Database and table that you wish to use. In this example, the database is SQLDATATEST and the table is dbo.Table_1. After configuring this, click the Test Connection button to ensure proper SQL Server connectivity.

Step 4) Click the design tab and then click the “Get from database” button in order to retrieve the columns from the existing database.

Step 5) Click the DataSheet Tab and click the Refresh button to retrieve the available records from the chosen table.

Step 6) Save and Close the object and then deploy it 

Step 7) Open the Object in Object Viewer and you will see an entry for each column from the database with tmp in front of it. In this example, I have tmpage, tmpgender, and tmpname. I also added them to the watch list to make them easier to see.

The database record can now be modified or updated from object viewer.

If you wish to access the next or previous record of delete a record you can set the RecordSelectNextCmd, RecordSelectPreviousCmd, and RecordDeleteCmd fields to true as below respectively:

 

sqldata database
Give feedback about this article

Recommended articles

TN - 1240 Creating a Watchlist Using an Import File

Read More

How to receive group emails

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand