Table Of Contents

Execute Query (Connection) (G Dataflow)

Version:
Last Modified: February 27, 2020

Executes an SQL query and returns a Recordset reference.

connector_pane_image
datatype_icon

connection reference

Reference to an ADO Connection object. Connection objects represent a connection with a data source, including methods to open and close a connection with a database, which database to connect with, and the level of isolation for database transactions.

datatype_icon

SQL query

Parameterized SQL statement or stored procedure name used to access a database. Use parameterized statements to simplify queries by requiring only the entry of particular chosen values by the user. They minimize re-use of SQL code and can be effective against security vulnerabilities such as injection attacks.

datatype_icon

cursor type

Method used to navigate the Recordset. Some providers and databases do not support all cursors.

Name Description
forward-only Allows only forward movement through the recordset. You cannot see changes made by other users during navigation.
spd-note-note
Note  

Forward-only cursors provide the highest performance.

keyset Allows forward and backward navigation. You can see records that other users add. Records deleted by other users, however, will not be removed.
dynamic Allows forward and backward navigation. You can see all changes other users make to the database.
static Allows forward and backward navigation with no ability to see any changes that other users make during navigation.

Default: forward-only

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

cache size

Number of records to cache in local memory.

spd-note-note
Note  

Each time you request next records, the node removes the current set of records from local memory and the retrieves the next set. If the cursor type input is set to forward-only, you must use the default cache size of 1. If you select a different cursor type, you can set the cache size to any value greater than 0.

Default: 1

datatype_icon

recordset reference out

Reference to an ADO Recordset object. Use a Recordset object to read and manipulate data from databases.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics