实在搞不明白问题
各位:
我的SQL在Windows下执行一点问题都没有,但到WEB执行却说:语法错误或
访问受限,真不明白:
以下是代码:
ls_sql="update dba.custom_contact ";
ls_sql=ls_sql+ "set remark=\'"+TEXTAREA1.Value.ToString()+"\' ";
ls_sql=ls_sql+" where custno=\'"+this.cs_custno+"\'";
System.Data.OleDb.OleDbCommand updatecmd= new
try
{
System.Data.OleDb.OleDbCommand(ls_sql,this.oleDbConnection1);
this.oleDbConnection1.Open();
if (updatecmd.ExecuteNonQuery()>0)
{ this.msg_box("udpate successfully");}
}
catch (System.Exception e)
{
this.msg_box(ls_sql);
this.msg_box("数据存盘出错,请与系统管理员联络!"+e.Message);
}