Retrieving Data from a Database

To retrieve data from the database using SQL statements or stored procedures, do the following.

Navigation

  1. In AgilePoint Envision, open a process template.
  2. Navigate to the Database stencil.
  3. On the Database stencil, drag the Query Database AgileShape, and drop it on the process template.
  4. To view the entire list of properties, in the Design Tasks pane, click Show Properties.
  5. On the SQLType list, select SQL.
  6. On the Configure field, click the Ellipses button.

Instructions

  1. On the Database Queries window, complete the following fields as required.
    Field Name Value

    Connection String

    Definition:
    Specifies the connection string that is used to connect to the database.
    • Click Choose to select a connection string from the list of shared custom attributes (defined and managed in Enterprise Manager.)
    • Click Create to create a new connection string.
    Allowed Values:
    A valid SQL connection string.
    Default Value:
    server=myserver;database=pubs;trusted_Connection=yes
    Custom Attributes:
    Yes
    Example:
    server=DataServer;database=StoreDb;trusted_Connection=yes

    Add

    Opens the Following Window:
    Custom Attribute and Query Window
    Purpose of this Window:
    Specifies adding or editing the SQL query which are executed at runtime.
  2. Complete any additional configuration for this AgileShape according to your requirements: