BookmarkSubscribeRSS Feed
DejanPeeski
Calcite | Level 5

I'm using SAS 9.3 . How can i conect form Base SAS to SQL server in order to see or import SQL tables into SAS.

 

proc setinit;
run;

---Base SAS Software
                    
---SAS/STAT
                    
---SAS/GRAPH
                    
---SAS/ETS
                    
---SAS/FSP
                    
---SAS/AF
                    
---SAS/IML
                    
---SAS/CONNECT
                    
---SAS/INSIGHT
                    
---SAS/EIS
                    
---MDDB Server common products
                    
---SAS Enterprise Guide
                    
---SAS/ACCESS Interface to PC Files
                    
---SAS/IML Studio
                    
---SAS Workspace Server for Local Access
                    

6 REPLIES 6
LinusH
Tourmaline | Level 20

Actually, I don't think that the SQL Server engine is supported any more. Users (at least in Windows) are directed to ODBC or OLEDB.

So you need to extend your licence/installation with an ACCESS to ODBC/OLEDB product. 

Data never sleeps
PaulOK01
Fluorite | Level 6

You can use your SAS/ACCESS Interface to PC Files to read and write to a SQL Server database.  See the bottom of page 213 of the "SAS/Access 9.4 Interface to PC Files: Reference, Fourth Edition", http://support.sas.com/documentation/cdl/en/acpcref/69731/PDF/default/acpcref.pdf

 

Paul

DejanPeeski
Calcite | Level 5

I get an

ERROR: Unable to locate pcfserver.exe. Please install PC Files Server.

PaulOK01
Fluorite | Level 6

There are a number of things to setup to establish the link to the database.  Here's a post that lists what needs to be done:

https://communities.sas.com/t5/SAS-Analytics-U/Connect-to-SQL-Server-Oracle-Database-by-SAS-Universi...

 

Paul

SASKiwi
PROC Star

The PC Files Server needs to be installed. It is available as a download from SAS:

 

http://support.sas.com/documentation/cdl/en/pcfsicg/69732/HTML/default/viewer.htm#n1gkwhppdxw1bsn1w4...

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 6 replies
  • 2357 views
  • 0 likes
  • 5 in conversation