SQL Query Parameter

SQL Parameter executes an SQL statement to a database and retrieves values from the dataset.

Parameter Details

Example :
In the following example, it connects to dbsource1 database using postgres. Also parameter AccountID is used in query to retrieve info corresponding to the value of AccountID param.

nsl_dbquery_var(balance; creditcardbalance, DSN="dbsource1" Query=" SELECT balance,creditcardbalance from acc_balance where account_id=’{AccountID}’ ", ORD=All);


nsl_search_var (AccountID, LB="<accountno>", RB="</accountno>", ORD=1, SaveOffset=0, SaveLen=0, Method=NONE, IgnoreCase=No, Search=BODY);

Steps for Oracle ODBC Driver installation

  1. Download ODBC Driver for Oracle 4.3 DEB x64 from
    https ://www.devart.com/odbc/oracle/download.html
  2. Install the downloaded package(step1) using
    dpkg -i <path to downloaded package>
  3. Download Oracle instant client dependency zip from
    https ://download.oracle.com/otn_software/linux/instantclient/218000/instantclient-basic-linux.x64-21.8.0.0.0dbru.zip
  4. Unzip file downloaded in step2 using
    unzip <zip file path>
  5. Once unzipped, folder 'instantclient_21_8' will be created. Go inside it and run below command
    rm $(ls | grep -v -e "libclntsh*" -e "libnnz*") network/ -rf
  6. Enter the path of the folder from step4 in
    /etc/ld.so.conf.d/oracle.conf.
  7. Run command
    ldconfig