When exporting a report into Microsoft Excel, users have the option of including the SQL generated by the report (SQL view) into the Excel worksheet as shown below:

There are two ways to enable this setting in Strategy Developer 9.x and 10.x:
At the project level
This setting can be enabled for all the reports within the project:



At the report level:
This setting is basically the same, but it only gets applied on the particular report where the option is set.
Select the 'Data' menu either when editing or viewing a report. Then choose 'Export options' setting. Afterwards, you select the same option described on step three for the project level.

Once the checkbox for 'Report SQL' is selected, when exporting to Microsoft Excel users will see the report SQL below the report data itself.