Exemplo n.º 1
0
 /// <summary>
 /// 执行SQL文
 /// </summary>
 /// <param name="sql">SQL文</param>
 /// <param name="connectID">连接取"DefaultSQL","Oracle","Sybase"等值</param>
 /// <returns>返回结果,错误返回-1</returns>
 public static int ExecSQL(string strFileName, string sql, ref string ErrorInfo)
 {
     OraDB myol = new OraDB();
     myol.Open();
     int i = myol.ExecSQL(sql,ref  ErrorInfo);
     myol.Close();
     return i;
 }
Exemplo n.º 2
0
        /// <summary>
        /// 执行SQL文

        /// </summary>
        /// <param name="sql">SQL文</param>
        /// <param name="connectID">连接取"DefaultSQL","Oracle","Sybase"等值</param>
        /// <returns>返回结果,错误返回-1</returns>
        public static int ExecSQL(string strFileName, string sql, ref string ErrorInfo)
        {
            OraDB myol = new OraDB();

            myol.Open();
            int i = myol.ExecSQL(sql, ref ErrorInfo);

            myol.Close();
            return(i);
        }