Problem Note 60884: 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:
- The code might be incorrect if you select the Use AuthDomain Option, you enter a Name that includes blank spaces, and you do not enclose the value within quotation marks. In this case, the code looks like this example:
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.
- The code might be incorrect if your library has been defined in metadata with the option ACCESS=READONLY (Input/Output ► Data access level for a connection). In this case, the ACCESS=READONLY option is automatically entered into the Options field on the Pass-through tab. When this option is present, the automatically generated SQL code fails with this error:
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.
Operating System and Release Information
SAS System | SAS Enterprise Guide | Microsoft® Windows® for x64 | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows 8 Enterprise 32-bit | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows 8 Enterprise x64 | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows 8 Pro 32-bit | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows 8 Pro x64 | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows 8.1 Enterprise 32-bit | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows 8.1 Enterprise x64 | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows 8.1 Pro 32-bit | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows 8.1 Pro x64 | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows 10 | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows Server 2008 | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows Server 2008 R2 | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows Server 2008 for x64 | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows Server 2012 Datacenter | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows Server 2012 R2 Datacenter | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows Server 2012 R2 Std | 7.13 | | 9.4 TS1M4 | |
Microsoft Windows Server 2012 Std | 7.13 | | 9.4 TS1M4 | |
Windows 7 Enterprise 32 bit | 7.13 | | 9.4 TS1M4 | |
Windows 7 Enterprise x64 | 7.13 | | 9.4 TS1M4 | |
Windows 7 Home Premium 32 bit | 7.13 | | 9.4 TS1M4 | |
Windows 7 Home Premium x64 | 7.13 | | 9.4 TS1M4 | |
Windows 7 Professional 32 bit | 7.13 | | 9.4 TS1M4 | |
Windows 7 Professional x64 | 7.13 | | 9.4 TS1M4 | |
Windows 7 Ultimate 32 bit | 7.13 | | 9.4 TS1M4 | |
Windows 7 Ultimate x64 | 7.13 | | 9.4 TS1M4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2017-08-11 16:57:03 |
Date Created: | 2017-08-08 05:03:29 |