BookmarkSubscribeRSS Feed
siddhu1
Quartz | Level 8

Hi,

 

In accessing large datasets and modifying,which is the efficient way of using the implicit and explicit SQL pass through facility in connecting to the database.
Can anyone suggest any tips on this for the efficiency of the queries.

 

Thanks & Regards,

Siddhartha

2 REPLIES 2
Quentin
Super User

Implicit pass-through will take your SAS code, and translate it into the native SQL of the database to execute it.

 

With explicit pass-through you get to write the native SQL of the database.

 

I wouldn't expect there to be much of an efficiency difference, if you write the same native SQL with the explicit pass-through that SAS generates with implicit pass-through.

 

But typically, people are better at writing code than computers.  If you are experienced in the native SQL of the database, and the optimizer the database uses, etc., then using explicit pass-through will give you more ability to write code that is more optimized for efficiency.  Also, explicit pass-through avoids the risk inherent to implicit pass-through, that risk being that SAS will decide it cannot translate your code the native SQL of the database and will have to transfer all of the source data for processing in SAS.

The Boston Area SAS Users Group is hosting free webinars!
Next up: Bart Jablonski and I present 53 (+3) ways to do a table lookup on Wednesday Sep 18.
Register now at https://www.basug.org/events.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 938 views
  • 2 likes
  • 3 in conversation