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
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.
To LinusH: Thank you for your reply! By speaking native SQL Server connection, I mean using SAS/access to MS SQL server directly.
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.
Thank you SASKiwi! Can I ask what makes you think SAS/ACCESS to SQL server will be more customisable?
@JBailey's post lists some of these. However if you are just doing SQL queries then either product is fine.
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;
I am sure I am missing something. If you are interested, I will create a community article. Let me know if you are interested.
Yes, I am interested. Please let us know if the article is ready!
Jade
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.