An SQL
explicit pass-through connection is a connection to the server using the CONNECT statement from PROC SQL
or another SQL-aware procedure.
You specify server SQL
statements in a PROC SQL EXECUTE statement or in a subsequent SELECT
* FROM CONNECTION statement. When you use an explicit SQL pass-through
connection, all tables that are referenced in the SQL statement must
be server tables or an error occurs. The server SQL engine must be
able to successfully parse the submitted SQL statement. If the server
cannot successfully parse the statement, the request fails.
The SQL code that you submit with an explicit SQL connection is passed exactly as
written to the server’s SQL processor. Use SQL explicit pass-through when you want
to optimize the SQL yourself, or when you want to control exactly which
commands are sent to the server’s SQL processor.
SQL explicit pass-through
sends SQL code very efficiently, because there is no automatic translation
of your SQL code. However, there is no optimization done to improve
performance of a query. You must take advantage of the optimization
features of the server to ensure that the code performs as efficiently
as possible (for example, parallel GROUP BY processing or BY data
grouping). For information about optimizing explicit SQL,
see SQL Planner Options.