DatabaseLink SQL Operations >

CloseSQLConnection

CloseSQLConnection[conn]
disconnects the current connection associated with a data source.
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 DatabaseExamples` package, as described in .
Open a database connection:
Close the connection:
Needs["DatabaseLink`"]
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 DatabaseExamples` package, as described in Using the Example Databases.
Open a database connection:
In[2]:=
Click for copyable input
Close the connection:
In[3]:=
Click for copyable input
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team