Good morning,
I assume the answer is 'no', but has anyone found a way to run a SQL Server proc from SAS?
Thanks!
--Ben
here is the syntax :
PROC SQL;
Connect to odbc (datasrc=datasrcnm user = user_id password = pwd);
Execute(db.stored_proc) by odbc;
Disconnect from odbc;
QUIT;
The Execute statement can be used to run the SQL Server Stored process from SAS.
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473677.htm
here is the syntax :
PROC SQL;
Connect to odbc (datasrc=datasrcnm user = user_id password = pwd);
Execute(db.stored_proc) by odbc;
Disconnect from odbc;
QUIT;
Well isn't that slick. 🙂 And it even works with ODBC.
Thanks very much!
--Ben
Someday I hope to convince them to get Access for SQL Server. Until then... sigh.
--Ben
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.