In reply to Leo.

Yes, I think it can be done. I have a more complete example of viewing/exporting SAS data using Windows PowerShell. PowerShell can also be used to access SQL Server, so you should be able to use the scripting tool as a way to transport data from one form to another.