Movatterモバイル変換


[0]ホーム

URL:


WOLFRAM

Wolfram Language & System Documentation Center
SQLConnectionOpenQ

SQLConnectionOpenQ[conn]

tests whether or notconn is a valid connection object.

Details and Options
Details and OptionsDetails and Options
Examples  
Basic Examples  
Properties & Relations  
See Also
Tech Notes
Related Guides
DatabaseLink`
DatabaseLink`

SQLConnectionOpenQ

SQLConnectionOpenQ[conn]

tests whether or notconn is a valid connection object.

Details and Options

Examples

open allclose all

Basic Examples  (1)

If you find that the examples in this section do not work as shown, you may need to install or restore the example database with the"DatabaseLink`DatabaseExamples`" package, as described inUsing the Example Databases.

Open a connection to a sample database:

Test the connection's validity:

Close the connection:

Test the connection's validity again:

Properties & Relations  (1)

SQLConnectionOpenQ initiates no server communication, so aTrue result does not imply that queries may be issued on the connection. UseSQLConnectionUsableQ for this purpose:

Test the connection:

SinceSQLConnectionUsableQ performs server communication, it will generally take longer thanSQLConnectionOpenQ to evaluate:

Close the connection:

See Also

SQLConnectionInformation SQLConnectionUsableQ OpenSQLConnection CloseSQLConnection SQLConnections SQLConnection SQLConnectionPools SQLConnectionPool

Tech Notes

Related Guides

Top

[8]ページ先頭

©2009-2025 Movatter.jp