CloseSQLConnection

CloseSQLConnection[conn]
disconnects the current connection associated with a data source.
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