SAS/SHARE Driver 9.1.3 for JDBC |
The SAS/SHARE driver for JDBC complies with version 2.0 of the Java Database Connectivity (JDBC) API specification from Sun Microsystems. However, some features such as record-level locking and scrolling are not supported with SAS software. The remainder of this page discusses other details about our implementation of the JDBC specification.
The getConnection methods in the JDBC DriverManager establish a connection to a database. Connection arguments can be specified in either a URL or a java.util.Properties object.
Note: If you specify the connection arguments in both the java.util.Properties object and the URL, the values in the URL will take precedence.
The URL must be of the form:
jdbc:sharenet://hostname:portnumber<?property-1=value-1<...&property-n=value-n>>
where
hostname
portnumber
property
/value
pairs You can specify the following properties as connection arguments:
shareUser
sharePassword
shareUser
property.
appname
sapw
pt2dbpw
librefs
librefs
property value must be specifies as follows:
(libname 'filepath'; libname 'filepath';...)
dbms
dbms_options
remarks
Note: When this property is set to True, any operation that involves reading and returning data set labels can result in poor performance because each data set must be opened in order to read the label. For example, if this property is set to True, performance may be degraded when using the ShareNetDatabaseMetaData.getTables() method to retrieve a description of the tables in a catalog.
undoPolicyNone
routerUrl
routerUrl
property value must be specifies as follows:
(routerUrl http://your_server/cgi-bin/shrcgi)
where http://your_server/cgi-bin/shrcgi
is the URL of the Message Router (shrcgi
or shrcgi.exe
), one
of the tunnel feature's server programs.
This section discusses the support that the SAS/SHARE driver for JDBC provides for various common DBMS features. It also lists the SQL data types and table types that are supported.
SAS software does not support stored procedures. While we provide the class ShareNetCallableStatement, none of its methods are supported.
When the ShareNetConnection class establishes a connection with a SAS/SHARE server, it creates a ShareNetDatabaseMetaData object for SAS data sets only. If your program connects to a foreign DBMS, no metadata will be returned.
SAS software does not support SQL catalogs. Parameter input that specifies SQL catalog information to SAS/SHARE driver for JDBC methods is ignored.
The following list identifies the SQL data types that are supported by the SAS/SHARE driver for JDBC:
The SAS/SHARE driver for JDBC supports tables of the following types:
SAS/SHARE Driver 9.1.3 for JDBC |