3. JDBC handles the request, formats the information, and returns the result to the Web
page.
JDBC Code Examples and Tips
The following lines must be a part of the HTML file for JDBC:
<applet code="CLASSPATH.*.class codebase="../ width=600 height=425>
<param name=url value="jdbc:sharenet://spdssnet_node:PORT">
<param name="dbms_options" value=DBQ='libname' HOST='host_node' SERV='NNNN'>
<param name="spdsuser" value="userid">
<param name="sharePassword" value="thepassword">
<param name="shareRelease" value="V9">
<param name="dbms" value="spds">
</applet>
Line 1:
•
CLASSPATH
points to the class path set up where the JDBC driver is installed.
•
*.class
is the name of the Java class that consumes all of the <PARAM name=...> lines.
Line 2:
•
spdssnet_node
is the node name of the machine on which the SPD SNET server is
running.
•
PORT=port number of the machine on which the SPD SNET server is running.
Line 3:
•
value=DBQ='libname'
is the LIBNAME domain of the SPD Server.
•
HOST='host_node'
is the location of the SPD SNET server.
•
SERV='NNNN'
is the port number of the name server.
Line 4:
•
spdsuser
value=
user ID
is the user ID that queries the SPD Server table.
Line 5:
•
sharePassword
value=
the password
is the password of the user ID that will make the
query.
Line 6:
•
shareRelease
value=V9 is the version of the driver you are using. This must not be
altered.
Line 7:
•
Sets the foreign database property on the JDBC driver. This means that the server is
not SAS and JDBC should not create a DataBaseMetaData object. See the examples
below for how to get around this.
JDBC Code Examples and Tips
101
Summary of Contents for Scalable Performance Data Server 4.5
Page 1: ...SAS Scalable Performance Data Server 4 5 Administrator s Guide...
Page 7: ...Part 1 Product Notes Chapter 1 SPD Server 4 5 Product Notes 3 1...
Page 8: ...2...
Page 12: ...6...
Page 63: ...Part 3 Migration Chapter 5 SPD Server 3 x to SPD Server 4 5 Conversion Utility 59 57...
Page 64: ...58...
Page 70: ...64 Chapter 5 SPD Server 3 x to SPD Server 4 5 Conversion Utility...
Page 72: ...66...
Page 76: ...70 Chapter 6 Using the SPD Server Name Server to Manage Resources...
Page 94: ...88 Chapter 7 Administering and Configuring SPD Server Using the SAS Management Console...
Page 98: ...92 Chapter 8 SPD Server SQL Query Rewrite Facility...
Page 116: ...110 Chapter 10 Configuring Disk Storage for SPD Server...
Page 128: ...122 Chapter 11 Setting Up SPD Server Parameter Files...
Page 154: ...148...
Page 198: ...192 Chapter 14 ACL Security Overview...
Page 212: ...206 Chapter 15 Managing SPD Server Passwords Users and Table ACLs...
Page 214: ...208...
Page 224: ...218 Chapter 16 SPD Server Operator Interface Procedure PROC SPDO...
Page 236: ...230 Chapter 18 SPD Server Table List Utility Spdsls...
Page 256: ...250 Chapter 19 SPD Server Backup and Restore Utilities...
Page 264: ...258 Chapter 20 SPD Server Directory Cleanup Utility...
Page 270: ......