RFE#1145: Preview SQL instead of executing it.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
Merge pull request #1209 from ashutoshdhundhara/rfe_1145

RFE#1145: Preview SQL instead of executing it.