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

  • 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 473
7 Functions — Alphabetical List
7-44
conn = database.ODBCConnection('dbtoolboxdemo','username','pwd')
conn =
ODBCConnection with properties:
Instance: 'dbtoolboxdemo'
UserName: 'username'
Message: []
Handle: [1x1 database.internal.ODBCConnectHandle]
TimeOut: 0
AutoCommit: 0
Type: 'ODBCConnection Object'
database.ODBCConnection returns conn as database.ODBCConnection object.
conn has an empty Message property, which indicates a successful connection.
Close the database connection conn.
close(conn)
Connect to Microsoft Access Using the JDBC/ODBC Bridge
Connect to the database with the ODBC data source name dbtoolboxdemo using the
user name username and password pwd.
conn = database('dbtoolboxdemo','username','pwd')
conn =
Instance: 'dbtoolboxdemo'
UserName: 'username'
Driver: []
URL: []
Constructor: [1x1 com.mathworks.toolbox.database.databaseConnect]
Message: []
Handle: [1x1 sun.jdbc.odbc.JdbcOdbcConnection]
TimeOut: 0
AutoCommit: 'on'
Type: 'Database Object'
database returns conn as a Database Object. conn has an empty Message property,
which indicates a successful connection.
Close the database connection conn.
Vue de la page 473
1 2 ... 469 470 471 472 473 474 475 476 477 478 479 ... 683 684

Commentaires sur ces manuels

Pas de commentaire