Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Distinct (combo box control)  (type: string): whether the returned values should be distinct or not.
  • Fields (text box editor type) (type: string): the column headers that you want to be returned with the select command. If you enter more than one you should separate them with ','. If all fields needs to be returned, then just use "*". The " * " has the same role as used in the SQL select all statement: select * from table
  • Limit (text box editor type) (type: string): limit the number of results. If the field is left blank, then the activity will return all the rows from the table
  • Order By (text box editor type) (type: string): the column header that you want to result to be ordered by. For example, if "ID" is inserted, then the values returned will be ordered depending on the value set in the ID column. If no value is provided, the activity will return the values in the same order as taken from the table. 
  • Order by Direction (combo box control) (type: string)choose to order the resulted rows in ASC Ascending or DESC Descending direction. It will be ignored if Order By is not set.
  • Table (text box editor type) (type: string): the table name on which to run the select.
  • WHERE (text box editor type) (type: string)the Where statement. For example: ID>2, where ID is a column header.

As mentioned above, the values for all the required parameters can be provided by IN arguments or variables. Below is an example of predefined arguments, ready to be used by the Select Row(s) from Table activity:

Image Removed

The Read Only Output variable are the possible output values that the activity will provide:

  • Output (type: collection<collection<string>>): outputs a  outputs a collection of collections of strings containing the selected rows.To use the elements of the collection, use Get Element From Collection activity.
  • Output Columns (type: int32): outputs the number of columns returned.
  • Output Rows (type: int32): outputs the number of rows returned.
 

 

A more complex example, with fields, orders and statements can be seen in the image below:

Image Added

Execution: In the Tracking Data there can be seen the returned results:

Image Added

 

The same result can be seen when executing the same SQL Select query from SQL Management Studio:

Image Added