Procedure: How to Pass SQL Commands to the RDBMS Using SQL Passthru

After you launch the Chart Wizard, you can begin to create your SQL chart procedure.

Note: If you choose to create a new SQL chart using the shortcut menu in the Environments Tree panel, you will skip the first screen of the Chart Wizard. You will not have to specify whether you are creating a chart or SQL chart. You will instead be brought to the Chart Wizard - Choose location for the new SQL Chart window, with the location for your chart already selected.

  1. Click Create SQL Chart.

    The Chart Wizard - Choose location for the new SQL Chart window opens.

  2. Navigate to where you want to create the SQL chart and click Next.

    The SQL Chart Wizard - Welcome window opens.

  3. Click Type SQL statements in the chart request. This enables you to type SQL commands that will be passed on to the RDBMS with the SQL Passthru feature.
  4. Click Next. The SQL Chart Wizard - Data access information window opens.
  5. In the Select database engine area, select a database from the drop-down list.
  6. In the Select connection area, choose a connection from the drop-down list generated from the engine you selected.
  7. Click Next. The SQL Chart Wizard - Enter SQL statements window opens.
  8. In the field box, type the SQL statements you want to pass to the RDBMS.

    Optionally, you can run with limited records by clicking Run SQL. By default, the Run with limited records check box is selected so you can test your procedure with a read limit if the engine supports it. There is a field box next to the check box in which you can enter the number of records to be read. 100 is the default limit.

  9. Click Next. The SQL Chart Wizard - Summary of SQL options window opens. Review your options and click Next, which opens the Chart Wizard - SQL Data Source window.
  10. Navigate to where you want to create the new procedure.
  11. In the Enter a Procedure Name field, type a name for the SQL chart.

    Note: Typing a procedure name is not required to create a new chart. If you do not type a procedure name in the Enter a Procedure Name field, a default procedure name will be provided until you save the procedure.

  12. Click Select Styling if you want to edit the style sheet for the chart.
  13. Click Finish.

    The Chart canvas opens. You can now add data to your chart and format the data using the tabs in the ribbon.