Hi KSharp, Thanks for your reply. It helped. Now, I am able to access the SQL Server but, have one more query. How do i get the data from specific table of my sql database which i have selected as default database in my DSN. CODE : libname MyLib '/folders/myfolders/'; LIBNAME z PCFILES SERVER='MyIP' DSN=SAS USER=sa PASSWORD=database@1 SCHEMA=dbo readbuff=10000 access=readonly; %let path = /folders/myfolders/; libname strat "&path"; proc sql ; connect to PCFILES(SERVER='my IP' DSN=SAS USER=sa PASSWORD=database@1); create table work.stud as select* from connection to PCFILES (PCFILES:: SQLTables "", "", "", ""); quit; proc print data=work.stud; run; OUTPUT: Attached.
... View more