Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 data between sas and sql sever

Author  Topic 

jeff06
Posting Yak Master

166 Posts

Posted - 2008-08-28 : 09:12:26
I use query in sql sever and store the result in a temp table #t1.
I want to turn #t1 into a sas dataset.

I have sas/access odbc connetion to sql sever 2005.

Can someone suggest a good way to do that?
THX.
Jeff

pootle_flump

1064 Posts

Posted - 2008-08-28 : 10:42:27
This is from a long time ago I'm afraid but I used to do something like:

BCP data out into csv
Create a SAS specification\ schema file (can't remember the exact terminology) for the csv file
Run a SAS macro to create a SAS dataset based on the two files
Go to Top of Page
   

- Advertisement -