Accessing Other Vendors' DBMS Data |
DBMS Access Using the SQL Procedure Pass-Through
Facility |
The CONNECT Statement
To establish a connection with the DBMS, use the CONNECT statement. The connection stays in effect until you submit a DISCONNECT statement or terminate the SQL procedure. |
General form, CONNECT statement:
where
|
Example
The CONNECT statement below connects to a SYBASE server and assigns it the alias Sybcon1. SYBASE is a case sensitive database, so the database objects are in uppercase, as they were created. The CONNECTION=GLOBAL argument specifies that multiple CONNECT statements that use identical values for all options can share the same connection to the DBMS. Notice that arguments are enclosed in parentheses. proc sql; connect to sybase as sybcon1 (server=SERVER1 database=PERSONNEL user=testuser password=testpass connection=global); ... quit; |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.