home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / samples.z / readme.txt < prev    next >
Text File  |  1996-12-09  |  2KB  |  38 lines

  1. JDBCTransaction Sample Applet
  2.  
  3.  
  4. This sample shows how to use a JDBCTransaction object and a Query object.
  5.  
  6. Here are the instructions to use the sample:
  7.  
  8. 1) Choose a JDBC Driver.  If the JDBC Driver you are using is not in the 
  9.    list of JDBC Drivers, click on others and specify the "URL prefix" and 
  10.    the "driver class name".
  11. 2) Enter the URL of the data source.  (When the actual connection occurs, 
  12.    the URL prefix will be added in front of this URL as the actual URL 
  13.    supplied to the "JDBCTransaction.connect" method.)
  14. 3) Enter the UserID and Password as required.
  15. 4) Click on the "Connect Transaction" button. Make sure the "Status" text 
  16.    field says the operation is successful.
  17. 5) Enter the table name and columns to be used in the SQL statement.
  18. 6) Click on the "Open Query" button.  Make sure the "Status" text field 
  19.    says the operation is successful.
  20. 7) If the query is opened successfully, the first ten rows are shown in 
  21.    the "Result Set" list box.  Click on the "More Results" button to get 
  22.    the next ten rows and so on.
  23.  
  24. Notes:
  25.  
  26. 1) You need to set up the classpath to tell where to find the class files
  27.    of the JDBC drivers (except for the Sybase jdbcDirect driver, whose
  28.    class files are in the classpath by default).  To add classpaths,
  29.    bring up the Targets windows in Starbuck. Expand "Default Options", 
  30.    and bring up the property sheet of "Java Target".  Click on the 
  31.    "Classpath" tab.  Add the necessary paths or zip files for the
  32.    particular JDBC drivers.
  33. 2) You cannot use the JDBC-ODBC bridge driver together with the Microsoft
  34.    interpreter.  To use the Sun VM, open the Targets window in Starbuck.
  35.    Choose the menu item File/Run_Options. Click on "Use Sun's Java 
  36.    interpreter".
  37.  
  38.