public static bool sqlExecuteNonQuery(string strSql, string[] strParameters, SqlDbType[] sqlType, object[] objValue) //执行带参数的SQL语句方法,并且无返回值
{
string strParaTemp = "";
if (m_dbTransaction == null)
{
connectionOpen(); //如果没有事务,则首先打开数据库连接
}
try
{
if (strParameters != null)
{
for (int i = 0; i < strParameters.Length; i++)
{
if ((objValue[i] != null))
{
strParaTemp += "," + strParameters[i];
m_dbCommand.Parameters.AddWithValue(strParameters[i], sqlType[i]);
m_dbCommand.Parameters[strParameters[i]].Value = (byte[])objValue[i];
}
else
{
strParaTemp += @",null";
}
}
}
strParaTemp &#