Previous Page | Next Page

SAS/ACCESS Interface to Sybase

SQL Pass-Through Facility Specifics for Sybase


Key Information

For general information about this feature, see Overview of the SQL Pass-Through Facility. A Sybase example is available.

Here are the SQL pass-through facility specifics for the Sybase interface.


Example

This example retrieves a subset of rows from the Sybase INVOICE table. Because the WHERE clause is specified in the DBMS query (the inner SELECT statement), the DBMS processes the WHERE expression and returns a subset of rows to SAS.

proc sql;
connect to sybase(server=SERVER1 
                  database=INVENTORY
                  user=testuser password=testpass);
%put &sqlxmsg;

select * from connection to sybase
   (select * from INVOICE where BILLEDBY=457232);
%put &sqlxmsg;

The SELECT statement that is enclosed in parentheses is sent directly to the database and therefore must be specified using valid database variable names and syntax.

Previous Page | Next Page | Top of Page