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

  • 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 611
7 Functions — Alphabetical List
7-182
ping
Retrieve status information about database connection
Syntax
ping(conn)
Description
ping(conn) retrieves the status of the database connection conn.
Examples
Retrieve Status of an ODBC Connection
Create an Oracle connection using an ODBC driver. For example, the following code
assumes you are connecting a data source named dbname with user name username and
password pwd.
conn = database(dbname,username,pwd);
Retrieve the status of the Oracle connection.
ping(conn)
ans =
DatabaseProductName: 'Oracle'
DatabaseProductVersion: '11.02.0010'
JDBCDriverName: 'JDBC-ODBC Bridge (SQORA32.DLL)'
JDBCDriverVersion: '2.0001 (11.02.0001)'
MaxDatabaseConnections: 0
CurrentUserName: 'username'
DatabaseURL: 'jdbc:odbc:dbname'
AutoCommitTransactions: 'True'
Vue de la page 611
1 2 ... 607 608 609 610 611 612 613 614 615 616 617 ... 683 684

Commentaires sur ces manuels

Pas de commentaire