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

how to push sas Data set in to SQL server(RTest- SQl R)

1 ACCEPTED SOLUTION

Accepted Solutions
JuanS_OCS
Amethyst | Level 16

Hello @sivastat08,

 

while I cannot understand the remark of "RTest- SQl R". to move data from a SAS dataset to any other data origin, such as SQL server you will need:

 

- the license for SAS/ACCESS interface to (your data source) (SQL Server, or ODBC. You can get also OLEDB, but I would rather advise against it, unless you have a very specific requirement).

- to install that SAS software component

- to install and configure the drivers for the SQL Server on the client and the server (if required)

- you use the appropiate libname statement in your code 

- use a data step or proc sql, as with any other table

View solution in original post

6 REPLIES 6
LinusH
Tourmaline | Level 20

There are literally thousands of examples online, start with SAS/ACCESSS documentation.

Data never sleeps
sivastat08
Pyrite | Level 9
thanks LinusH.
JuanS_OCS
Amethyst | Level 16

Hello @sivastat08,

 

while I cannot understand the remark of "RTest- SQl R". to move data from a SAS dataset to any other data origin, such as SQL server you will need:

 

- the license for SAS/ACCESS interface to (your data source) (SQL Server, or ODBC. You can get also OLEDB, but I would rather advise against it, unless you have a very specific requirement).

- to install that SAS software component

- to install and configure the drivers for the SQL Server on the client and the server (if required)

- you use the appropiate libname statement in your code 

- use a data step or proc sql, as with any other table

sivastat08
Pyrite | Level 9

actually im connecting R- software with SQL server(Library name is -RTest ) and i wnat to push the sas data set to SQL server

user24feb
Barite | Level 11

You probably are supposed only to insert data (and not to create tables). Could be something like:

Proc SQL;
  Insert Into <SQL.Table> Select * From <SAS.Table>;
Quit;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 6 replies
  • 2961 views
  • 3 likes
  • 5 in conversation