BookmarkSubscribeRSS Feed
hellind
Quartz | Level 8

We don't have the SAS Connector for Oracle. But we are able to import Oracle tables via OLEDB using Enterprise Guide. These are very normalized tables, and hence we have advanced SQL that joins many tables to produce a single table.

If we were to use OLEDB as shown in 2nd attachment, we would be importing many tables (50+) one by one in EG and using Table Join to get the final table.

We have the SQL code ready. Is there a way for us to execute this SQL via OLEDB in EG? It is possible in JMP, as shown in 1st attachment.


eg_oledb.pngjmp_advanceSQL.png
1 REPLY 1
LinusH
Tourmaline | Level 20

If you want to use your own SQL (OLEDB specific), you have to use explicit pass through. Which means that first you have to connect to your OLEDB data source, then enclose your SQL in either an execute block (if your SQL does not return any values to the SAS session, which is the case when creating permanent tables in the source database), or in a "from connection to" block, which is refferre3d to in a SAS SQL from statement.

This however does not use any of the built in logic in EG.

You could probably recreate some parts of the SQL by using the Query Builder. it has an option that will create the necessary SQL pass-thru specific code for you.

/Linus

Data never sleeps

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 921 views
  • 0 likes
  • 2 in conversation