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.

428 CONNECT Statement 4 Chapter 13management features. These arguments are optional, but if they are included,they must be enclosed in parentheses.CONNECTION= SHARED | GLOBALindicates whether multiple CONNECT statements <strong>for</strong> a DBMS can use thesame connection.The CONNECTION= option enables you to control the number ofconnections, and there<strong>for</strong>e transactions, that your <strong>SAS</strong>/<strong>ACCESS</strong> engineexecutes and supports <strong>for</strong> each Pass-Through CONNECT statement.When CONNECTION=GLOBAL, multiple CONNECT statements that useidentical values <strong>for</strong> CONNECTION=, CONNECTION_GROUP=,DBCONINIT=, DBCONTERM=, and any database connection arguments canshare the same connection to the DBMS.When CONNECTION=SHARED, the CONNECT statement makes oneconnection to the DBMS. Only Pass-Through statements that use this aliasshare the connection. SHARED is the default value <strong>for</strong> CONNECTION=.In this example, the two CONNECT statements share the same connectionto the DBMS because CONNECTION=GLOBAL. Only the first CONNECTstatement actually makes the connection to the DBMS, while the lastDISCONNECT statement is the only statement that disconnects from theDBMS.proc sql;/*...SQL Pass-Through statements referring to mydbone...*/connect to oracle as mydbone(user=testuser pw=testpasspath=’myorapath’connection=global);/*...SQL Pass-Through statements referring to mydbtwo...*/connect to oracle as mydbtwo(user=testuser pw=testpasspath=’myorapath’connection=global);disconnect from mydbone;disconnect from mydbtwo;quit;CONNECTION_GROUP=connection-group-namespecifies a connection that can be shared among several CONNECTstatements in the SQL pass-through facility.Default value: noneBy specifying the name of a connection group, you can share one DBMSconnection among several CONNECT statements. The connection to theDBMS can be shared only if each CONNECT statement specifies the sameCONNECTION_GROUP= value and specifies identical DBMS connectionarguments.When CONNECTION_GROUP= is specified, it implies that the value ofthe CONNECTION= option is GLOBAL.

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

Saved successfully!

Ooh no, something went wrong!