DatabaseLink`
DatabaseLink`

SQLConnectionOpenQ

SQLConnectionOpenQ[conn]

tests whether or not conn is a valid connection object.

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 validity:

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

Close the connection:

In[4]:=
Click for copyable input

Test the connection's validity again:

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

Properties & Relations  (1)

See Also

SQLConnectionInformation  SQLConnectionUsableQ  OpenSQLConnection  CloseSQLConnection  SQLConnections  SQLConnection  SQLConnectionPools  SQLConnectionPool

Tutorials