Currently, I am using SAS E guide locally and trying to set up the connection between SAS and a database. The one I wanted to use is called XXX, i can find it through ODBC data source administrator->system DSN->System Data Sources: Name XXX, Driver SQL server. Could you please let me know if I have what I need to set up the connection? So that I can access tables on this XXX database in SAS. If so, how do I do it? Sorry if this question seems dumb to you. I really cannot find anyone to help me with this issue.
Hello,
Welcome to SAS Community!
You require SAS/Access interface to ODBC. Run the below code to check if you have it or not.
proc setinit;
run;
If you don't have it, then you can't connect using ODBC.
If it is listed then you can assign a LIBANME to access the data in it. (DSN is the data source name that you assign in ODBC connection setup)
libname mydb odbc dsn=XXXX user= password= schema=;
Theoretically, you can connect directly from your EG client, and trhen SAS/ACCESS is not needed.
But, should inly be considered for test/small data sets, since this connection cannot be optimized the same way as athe fully fledget ACCESS engine from the SAS session..
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!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.