The Query Builder task in SAS® Enterprise Guide® might not generate correct SQL code when running in pass-though mode


In the Query Builder task, you have the option to Generate source for explicit pass-through. When this option is selected, SAS Enterprise Guide sometimes generates incorrect SQL code.

Here are two causes of this problem:

PROC SQL;
CONNECT TO ORACLE as con1
(READBUFF=10000 ACCESS=READONLY PATH=LIQ80 authdomain=example OraAuth);

Because the quotation marks are missing, the SQL procedure fails with an error. To avoid this issue, include quotation marks when you enter a Name that includes blank spaces.

PROC SQL;
CONNECT TO ORACLE as con1
(READBUFF=10000 ACCESS=READONLY PATH=LIQ80 authdomain=example_OraAuth);
ERROR: Invalid option name Access

To avoid this error, remove ACCESS=READONLY from the Options field.