13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

62 How the <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME Statement Works 4 Chapter 7Figure 7.1How <strong>SAS</strong> Connects to the DBMS<strong>SAS</strong>/<strong>ACCESS</strong> softwareEngineInterfaceview enginePass-ThroughFacilityDBMScommunicationmoduleVendorclientlibrariesVendorrelationalDBMS<strong>ACCESS</strong>procedure*DBLOADprocedure*Client** Client** Server*** The <strong>ACCESS</strong> procedure and the DBLOAD procedure are not supported by all <strong>SAS</strong>/<strong>ACCESS</strong> interfaces.** In some cases, both client and server software can reside on the same machine.You can invoke a <strong>SAS</strong>/<strong>ACCESS</strong> relational DBMS interface by using either a LIBNAMEstatement or a PROC SQL statement. (You can also use the <strong>ACCESS</strong> and DBLOADprocedures with some of the <strong>SAS</strong>/<strong>ACCESS</strong> relational interfaces. However, theseprocedures are no longer the recommended way to access relational database data.)How the <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME Statement WorksAccessing Data from a DBMS ObjectYou can use <strong>SAS</strong>/<strong>ACCESS</strong> to read, update, insert, and delete data from a DBMSobject as if it were a <strong>SAS</strong> data set. Here is how to do that:1 You start a <strong>SAS</strong>/<strong>ACCESS</strong> interface by specifying a DBMS engine name and theappropriate connection options in a LIBNAME statement.2 You enter <strong>SAS</strong> requests as you would when accessing a <strong>SAS</strong> data set.3 <strong>SAS</strong>/<strong>ACCESS</strong> generates DBMS-specific SQL statements that are equivalent to the<strong>SAS</strong> requests that you enter.4 <strong>SAS</strong>/<strong>ACCESS</strong> submits the generated SQL to the DBMS.The <strong>SAS</strong>/<strong>ACCESS</strong> engine defines which operations are supported on a table and callscode that translates database operations such as open, get, put, or delete intoDBMS-specific SQL syntax. <strong>SAS</strong>/<strong>ACCESS</strong> engines use an established set of routineswith calls that are tailored to each DBMS.Processing Queries, Joins, and Data FunctionsTo enhance per<strong>for</strong>mance, <strong>SAS</strong>/<strong>ACCESS</strong> can also transparently pass queries, joins,and data functions to the DBMS <strong>for</strong> processing (instead of retrieving the data from the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!