Explicit pass-through is not always feasible. The query
has to be able to work as is on the database. Therefore, if the query
contains anything specific to SAS beyond the outermost select columns
portion, the database generates errors. For example, using any of
the following in a WHERE clause expression or in a subquery on the
WHERE or FROM clauses causes the code to fail on the database if pass
through is set to
Yes:
-
-
-
DATE or DATETIME literals or actual
numeric values
-
date arithmetic (usually does not
work)
-
-
The SQL
Properties pane also contains the
Target Table is Pass
Through property, which determines whether explicit pass-through
is active for the target table. This property enables the target to
have the select rows inserted into the target within the explicit
operation. This property is valid only when all the tables in the
query, including the target, are on the same database server. The
Target Table is Pass Through property has a corresponding
property, named
Target Table Pass Through Action. The
Truncate option in this property is
useful for DBMS systems that does not allow the target to be deleted
or created. In this case, the only option is removing all of the rows.
If
Truncate is selected, all of the rows
in the table are deleted. If the table does not exist, it is created.