Accessing DBMS Data with the SQL Pass-Through Facility |
The examples in this section demonstrate how to use the SQL pass-through facility to access and update DBMS data. You can use the SQL pass-through facility to read and write data between SAS and a DBMS. However, it is recommended that you use the LIBNAME statement to access your DBMS data more easily and directly.
To run these examples, follow these steps:
Modify and submit the ACCAUTO.SAS file, which creates the appropriate LIBNAME statements for each database.
Submit the ACCDATA.sas program to create the DBMS tables and SAS data sets that the sample code uses.
Note: Before you rerun an example that updates DBMS data, resubmit the ACCDATA.sas program to re-create the DBMS tables.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.