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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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