Chapter Contents |
Previous |
Next |
SAS/ACCESS Software for Relational Databases: Reference |
Beginning in Version 7 of SAS/ACCESS software, there are a number of changes in the way the SQL Procedure Pass-Through Facility works. For more information, see SQL Procedure Pass-Through Facility Statements.
This section provides general reference information for the SQL Procedure Pass-Through Facility. See your DBMS chapter for detailed information about using your database's arguments and options. See Using DBMS Data with the SQL Pass-Through Facility for usage examples.
The SQL Procedure Pass-Through Facility consists of three statements and one component:
You can use the SQL Procedure Pass-Through Facility statements in a PROC SQL query, or you can store them in a PROC SQL view. When you create a PROC SQL view, any arguments that you specify in the corresponding CONNECT statement are stored also. Thus, when the PROC SQL view is used in a SAS program, the SAS System can establish the appropriate connection to the DBMS.
See the SAS Procedures Guide for information on changes and enhancements to the SQL procedure.
Syntax for the SQL Procedure Pass-Through Facility |
PROC SQL;
|
<QUIT;> |
For information about the CONNECT, EXECUTE, and DISCONNECT statements as well as the CONNECTION TO component, see SQL Procedure Pass-Through Facility Statements.
To connect to a DBMS and query the DBMS data, use the SAS/ACCESS LIBNAME statement or use the PROC SQL Pass-Through statement CONNECTION TO in this form:
PROC SQL;
|
<QUIT;> |
To do this | Use this statement |
---|---|
Establish a connection with a DBMS | CONNECT |
Terminate the connection with a DBMS | DISCONNECT |
Send a DBMS-specific, non-query SQL statement to a DBMS | EXECUTE |
Query a DBMS using a DBMS-specific SQL statement | SELECT and FROM CONNECTION TO |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.