DatabaseLink`
DatabaseLink`

SQLConnectionUsableQ

SQLConnectionUsableQ[conn]

tests whether or not queries may be issued on conn.

SQLConnectionUsableQ[conn,{sql,res}]

expects result res when issuing sql on conn.

Details

Examples

open allclose all

Basic Examples  (1)

In[1]:=
Click for copyable input

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 in Using the Example Databases.

Open a connection to a sample database:

In[2]:=
Click for copyable input
Out[2]=

Test the connection's usability:

In[3]:=
Click for copyable input
Out[3]=

Close the connection:

In[4]:=
Click for copyable input

Test the connection's usability again:

In[5]:=
Click for copyable input
Out[5]=

Generalizations & Extensions  (1)

Properties & Relations  (1)

See Also

SQLConnectionInformation  SQLConnectionOpenQ  OpenSQLConnection  CloseSQLConnection  SQLConnections  SQLConnection  SQLConnectionPools  SQLConnectionPool

Tutorials