public void Disconnect()
{
// Disconnect can be called from Dispose and should guarantee no errors
if(!m_bConnected)
return;
if(m_oTransaction != null)
RollbackTransaction(false);
if(m_oCommand != null)
{
m_oCommand.Dispose();
m_oCommand = null;
}
if(m_oConnection != null)
{
try
{
m_oConnection.Close();
}
catch
{
}
m_oConnection.Dispose();
m_oConnection = null;
}
m_bConnected = false;
}