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.

425CHAPTER13The SQL Pass-Through Facility<strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>About SQL Procedure Interactions 425Overview of SQL Procedure Interactions with <strong>SAS</strong>/<strong>ACCESS</strong> 425Overview of the SQL Pass-Through Facility 425Syntax <strong>for</strong> the SQL Pass-Through Facility <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 426Overview 426Return Codes 426CONNECT Statement 427DISCONNECT Statement 431EXECUTE Statement 432CONNECTION TO Component 434About SQL Procedure InteractionsOverview of SQL Procedure Interactions with <strong>SAS</strong>/<strong>ACCESS</strong>The SQL procedure implements structured query language (SQL) <strong>for</strong> <strong>SAS</strong> software.See the Base <strong>SAS</strong> Procedures Guide <strong>for</strong> in<strong>for</strong>mation about PROC SQL. Here is how youcan use <strong>SAS</strong>/<strong>ACCESS</strong> software <strong>for</strong> relational databases <strong>for</strong> PROC SQL interactions.3 You can assign a libref to a DBMS using the <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statementand reference the new libref in a PROC SQL statement to query, update, or deleteDBMS data. (See Chapter 10, “The LIBNAME Statement <strong>for</strong> <strong>Relational</strong><strong>Databases</strong>,” on page 87.)3 You can embed LIBNAME in<strong>for</strong>mation in a PROC SQL view and thenautomatically connect to the DBMS every time the PROC SQL view is processed.(See “SQL Views with Embedded LIBNAME Statements” on page 90.)3 You can send DBMS-specific SQL statements directly to a DBMS using anextension to PROC SQL called the SQL pass-through facility. (See “Syntax <strong>for</strong> theSQL Pass-Through Facility <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” on page 426.)Overview of the SQL Pass-Through FacilityThe SQL pass-through facility uses <strong>SAS</strong>/<strong>ACCESS</strong> to connect to a DBMS and to sendstatements directly to the DBMS <strong>for</strong> execution. An alternative to the <strong>SAS</strong>/<strong>ACCESS</strong>LIBNAME statement, this facility lets you use the SQL syntax of your DBMS. Itsupports any SQL that is not ANSI-standard that your DBMS supports.

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

Saved successfully!

Ooh no, something went wrong!