> On 5 Mar 2015, at 8:34pm, RNACS - Info <info at rnacs.com> wrote:
> 
> The code I am using is:
> 
>        ' Close license database connection 
>        If Not IsNothing(SQLconn) Then
>            If SQLconn.State <> ConnectionState.Closed Then
>                SQLconn.Close()
>            End If
>            SQLconn = Nothing
>        End If

After "SQLconn.Close()", check again the state of the connection to see if it 
was successfully closed.  If not, display an error message.

Simon.

Reply via email to