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 webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1070 views
  • 2 likes
  • 3 in conversation