MATLAB DATABASE TOOLBOX RELEASE NOTES Guia do Utilizador Página 612

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 684
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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'
Vista de página 611
1 2 ... 607 608 609 610 611 612 613 614 615 616 617 ... 683 684

Comentários a estes Manuais

Sem comentários