コード例 #1
0
        public static void ExecVoid(string sqlstr, string accountName)
        {
            DataSql agent = new DataSql(accountName);

            try
            {
                SqlDataItem item = new SqlDataItem();
                item.CommandText = sqlstr;
                agent.ExeSql_void(item);
                agent.Close();
            }
            catch (Exception ee)
            {
                agent.Close();
                throw ee;
            }
        }
コード例 #2
0
 public static bool ExecSQL(SqlDataItem item, string accountName)
 {
     try
     {
         DataSql agent  = new DataSql(accountName);
         int     result = agent.ExeSql_int(item);
         if (result > 0)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }