BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jade_SAS
Pyrite | Level 9

Hi All,

 

    When SAS Accessing MS SQL server data, which one is more efficient , ODBC connection or SQL sever native client connection? 

That is when you do "libname test  ODBC"  or "libname test SQLSVR" to access the dataset, which one is more efficient?

Also what's the advantage and disadvantage when using ODBC connection or SQL sever native client connection in SAS?

 

Thank you!

Jade

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

Performance should be similar. The main constraint is network bandwidth to move data between the SQL Server and the SAS application server. We use ODBC and find performance is very good. The advantage of ODBC is it can be used with any ODBC-compliant database whereas the SQL Server ACCESS product can only be used with that database.

 

In theory SAS/ACCESS to SQL Server will be more customisable but I have yet to identify any major limitations with ODBC.

View solution in original post

8 REPLIES 8
LinusH
Tourmaline | Level 20
What do you mean by native SQL Server connection? Regardless of what your client is called it's still ODBC or OLEDB. Regardless, it shouldn't really care unless you have any specific requirements.
Data never sleeps
Jade_SAS
Pyrite | Level 9

To LinusH: Thank you for your reply! By speaking native SQL Server connection, I mean using SAS/access to MS SQL server directly.

SASKiwi
PROC Star

Performance should be similar. The main constraint is network bandwidth to move data between the SQL Server and the SAS application server. We use ODBC and find performance is very good. The advantage of ODBC is it can be used with any ODBC-compliant database whereas the SQL Server ACCESS product can only be used with that database.

 

In theory SAS/ACCESS to SQL Server will be more customisable but I have yet to identify any major limitations with ODBC.

Jade_SAS
Pyrite | Level 9

Thank you SASKiwi! Can I ask what makes you think SAS/ACCESS to SQL server will be more customisable?

SASKiwi
PROC Star

@JBailey's post lists some of these. However if you are just doing SQL queries then either product is fine. 

LinusH
Tourmaline | Level 20
Maybe this old knowledge but SAS/ACCESS to SQL Server was only available in UNIX/Linux environments. So of you are in Windows I don't think that you have ACCESS to SQL Server as an alternative...
Data never sleeps
JBailey
Barite | Level 11

Hey,

 

Windows is a new platform for SAS/ACCESS Interface to Microsoft SQL Server.

 

This includes a DataDirect driver for MS SQL Server. Benefits are; 

  1. Enhanced function push-down
  2. Selected PROC push-down
  3. Enhance Internationalization support
  4. Simplified LIBNAME statement - no DSN required.

I am sure I am missing something. If you are interested, I will create a community article. Let me know if you are interested. 

Jade_SAS
Pyrite | Level 9

Yes, I am interested. Please let us know if the article is ready!

 

Jade

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 8 replies
  • 2543 views
  • 7 likes
  • 4 in conversation