I have a SQL Server 2012 machine hosting a database with a large amount of data that I query on a regular basis. In order to make the query, I need to upload a list of Unique IDs, then query for data related to those unique IDs. In order to keep things working smoothly with so much data and a slow connection, I'm using the PROC SQL pass-through facility to do the selecting. What I want to know is if I can also use the pass-through facility to do the inserting from a local SAS dataset? I'm currently connecting with a libname statement, and then with a "connect to" statement in PROC SQL, but that's not elegant.
I'd like to do something like:
connect to odbc as SQL_SERVER (datasrce=...);
INSERT INTO CONNECTION TO SQL_SERVER...
Can this be done?