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

How can I directly import data from SQL server to SAS? Is there sample code? Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
kiranv_
Rhodochrosite | Level 12

you can do this by defining libname as shown below or by doing explicit pass through

LIBNAME SQL ODBC DSN=’sql server’ user=sasjlb pw=pwd;

 

Below two papers will be to give lot of info on this

https://support.sas.com/techsup/technote/ts765.pdf

http://analytics.ncsu.edu/sesug/2002/DM10.pdf

 

View solution in original post

4 REPLIES 4
Reeza
Super User

First you need to connect to SQL and that depends on your system set up. 

Visiting
Obsidian | Level 7

Thank you for response!

kiranv_
Rhodochrosite | Level 12

you can do this by defining libname as shown below or by doing explicit pass through

LIBNAME SQL ODBC DSN=’sql server’ user=sasjlb pw=pwd;

 

Below two papers will be to give lot of info on this

https://support.sas.com/techsup/technote/ts765.pdf

http://analytics.ncsu.edu/sesug/2002/DM10.pdf

 

Visiting
Obsidian | Level 7

Thank you!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1966 views
  • 2 likes
  • 3 in conversation