SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 64581: The Insert Rows transformation generates incorrect explicit PROC SQL pass-through code when the source and target tables are in different databases

DetailsHotfixAboutRate It

An issue occurs when your source and target tables for the Insert Rows transformation are in different database management systems (DBMS). In that scenario, SAS® Data Integration Studio generates incorrect code to insert the rows in the target table. The query is generated using explicit SQL procedure pass-through code. For example, if you are inserting rows into an Oracle table and a Microsoft SQL Server table is your source table, the PROC SQL INSERT section of the code would be generated as follows:

    execute
      (
         insert into scott.CLASS (NAME, SEX, AGE, HEIGHT, WEIGHT)
         select
            CLASS.Name,
            CLASS.Sex,
            CLASS.Age,
            CLASS.Height,
            CLASS.Weight
         from
            dbo.CLASS CLASS
      ) by ORACLE;

The Microsoft SQL Server table reference is included in the code that is processed by the Oracle database. You might receive an error similar to the following:

    ERROR: ORACLE execute error: ORA-00942: table or view does not exist.

The workaround is to use one of these methods to change the setting for the PROC SQL pass-through option:

  • Set the SQL procedure pass-through option to No. You will find the option in the properties of the Insert Row transformation. After you open the properties of the transformation, select Options ► Database pass-through
  • Deselect the Set Pass Through to yes for new SQL transformation check box. You will find this check box in Tools ► Options ► Job Editor.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Data Integration StudioMicrosoft® Windows® for x644.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows 8 Enterprise 32-bit4.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows 8 Enterprise x644.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows 8 Pro 32-bit4.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows 8 Pro x644.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows 8.1 Enterprise 32-bit4.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows 8.1 Enterprise x644.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows 8.1 Pro 32-bit4.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows 8.1 Pro x644.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows 104.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows Server 2012 Datacenter4.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows Server 2012 R2 Datacenter4.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows Server 2012 R2 Std4.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows Server 2012 Std4.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows Server 20164.9044.9059.4 TS1M69.4 TS1M7
Microsoft Windows Server 20194.9044.9059.4 TS1M69.4 TS1M7
Windows 7 Enterprise 32 bit4.9044.9059.4 TS1M69.4 TS1M7
Windows 7 Enterprise x644.9044.9059.4 TS1M69.4 TS1M7
Windows 7 Home Premium 32 bit4.9044.9059.4 TS1M69.4 TS1M7
Windows 7 Home Premium x644.9044.9059.4 TS1M69.4 TS1M7
Windows 7 Professional 32 bit4.9044.9059.4 TS1M69.4 TS1M7
Windows 7 Professional x644.9044.9059.4 TS1M69.4 TS1M7
Windows 7 Ultimate 32 bit4.9044.9059.4 TS1M69.4 TS1M7
Windows 7 Ultimate x644.9044.9059.4 TS1M69.4 TS1M7
* 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.