ERROR [HY000] [Informix .NET provider][Informix]User Defined Routine error. sqlerrm(mat_spec_desc_t)[U0000]CISAMDB: Error in iswrite! errno= 100, file=isinsert.c, line=83執行到cmd.ExecuteNonQuery();時出錯
public bool ExecuteCommand(IfxConnection conn, ArrayList sqls)
{
bool flag = false;
int count = 0;
this.open(conn);
IfxCommand cmd = new IfxCommand();
cmd.Connection = conn;
count = sqls.Count;
try
{
if (count > 0)
{
for (int i = 0; i < count; i++)
{
cmd.CommandText = sqls[i].ToString();
sLog.doLog("sql:" + sqls[i].ToString(), 1);
cmd.ExecuteNonQuery();
}
flag = true;
}
}
catch (Exception e)
{
sLog.doLog(e.StackTrace.ToString(), 1);
throw (e);
}
finally
{
close(conn);
}
return flag;
}
public bool ExecuteCommand(IfxConnection conn, ArrayList sqls)
{
bool flag = false;
int count = 0;
this.open(conn);
IfxCommand cmd = new IfxCommand();
cmd.Connection = conn;
count = sqls.Count;
try
{
if (count > 0)
{
for (int i = 0; i < count; i++)
{
cmd.CommandText = sqls[i].ToString();
sLog.doLog("sql:" + sqls[i].ToString(), 1);
cmd.ExecuteNonQuery();
}
flag = true;
}
}
catch (Exception e)
{
sLog.doLog(e.StackTrace.ToString(), 1);
throw (e);
}
finally
{
close(conn);
}
return flag;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货