MATLAB DATABASE TOOLBOX RELEASE NOTES Guide de l'utilisateur Page 205

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 684
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 204
Sybase JDBC for Mac OS X
2-179
want to close Database Explorer and all database connections, click the Close button
( ) in the top-left corner.
If Database Explorer is docked, click the Close button ( ) to close all database
connections and Database Explorer.
Connect to Sybase using the JDBC connection command line.
When using the command line, you do not have to set up a data source with Database
Explorer. You can use the command line to pass all the required parameters for
connection.
1
Create a URL string using the format jdbc:subprotocol:subname. The
jdbc part of this string stays constant for any JDBC driver. subprotocol
is a database type. In this case, subprotocol is sybase:Tds. The last part
of the URL string is subname. For Sybase, this contains the server name,
the port number, and the database name. For example, your URL string is
jdbc:sybase:Tds:ServerName:PortNumber/dbname, where ServerName is
your server name, PortNumber is your port number, and dbname is your database
name.
2
Connect to the Sybase database using the database function. For example, the
following code assumes you are connecting to a database named dbname with user
name username and password pwd. The fourth argument is the driver Java class
Vue de la page 204
1 2 ... 200 201 202 203 204 205 206 207 208 209 210 ... 683 684

Commentaires sur ces manuels

Pas de commentaire