Example #1
0
        static public int EseguiSuDBCyberPlan(ref DBHelper2 cm, string query, int timeout)
        {
#if DEBUG
            //return 1;
#endif
            int ret = -99;
            if (!string.IsNullOrWhiteSpace(query))
            {
                if (cm._connection.State != ConnectionState.Open)
                {
                    cm._connection.Open();
                }
                ret = cm.ExecuteCommand(query, timeout);

                cm._connection.Close();
            }
            return(ret);
        }