If you want to check the connection state of the OleDbConnection object, then check the OleDbConnection.State property.
Now that I've answered how to check the status, I wonder why you need to check if a connection is opened?Code:bool IsConnectionOpen( OleDbConnection conn ) { return conn.State != ConnectionState.Closed; }




Reply With Quote