BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jerrynetwork
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. 

Jerrynetwork
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

 

Jerrynetwork
Obsidian | Level 7

Thank you!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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