Reload() private method

private Reload ( System.Data.OleDb.OleDbConnection connection, System.Data.OleDb.OleDbTransaction transaction ) : void
connection System.Data.OleDb.OleDbConnection
transaction System.Data.OleDb.OleDbTransaction
return void
        internal OleDbConnection CreateConnection()
        {

            var con = new OleDbConnection(ConnectionString);
            con.Open();

            if (m_ServerDefaultSettings == null)
            {
                var temp = new SqlServerEffectiveSettings();
                temp.Reload(con, null);
#if !Thread_Missing
                Thread.MemoryBarrier();
#endif
                m_ServerDefaultSettings = temp;
            }

            var sql = BuildConnectionSettingsOverride();

            if (sql.Length > 0)
                using (var cmd = new OleDbCommand(sql.ToString(), con))
                    cmd.ExecuteNonQuery();

            return con;
        }
 public SqlServerEffectiveSettings GetEffectiveSettings()
 {
     var result = new SqlServerEffectiveSettings();
     using (var con = CreateConnection())
         result.Reload(con, null);
     return result;
 }