Optimizing Your SQL Usage

When Passing Joins to the DBMS Will Fail

SAS/ACCESS will, by default, attempt to pass certain types of SQL statements directly to the DBMS for processing. Most notable are SQL join statements that otherwise would be processed as individual queries to each data source that belonged to the join. In that instance, the join would then be performed internally by PROC SQL. Passing the join to the DBMS for direct processing can result in significant performance gains.

However, there are several reasons why a join statement under PROC SQL might not be passed to the DBMS for processing. In general, the success of the join depends upon the nature of the SQL that was coded and the DBMS's acceptance of the generated syntax. It is also greatly influenced by the use of option settings. The following are the primary reasons why join statements might fail to be passed:

space
Previous Page | Next Page | Top of Page