set session("orasession")  = server.CreateObject("OracleInProcServer.XOraSession")
    set session("OraDatabase") = session("orasession").OpenDatabase("aaa","aaa/aaa", 0) sql = "select * from k_zcfg where 1=0" Set OraDynaset = session("OraDatabase").CreateDynaset(sql,0) OraDynaset.ADDNEW OraDynaset.Fields("id").Value = id
OraDynaset.Fields("news_text").Value = news_text  '这个
OraDynaset.update报错
Oracle Automation 错误 '800a01b8' SQL execution error, ORA-01098: 在 Long Insert 过程中出现程序接口错误 ORA-01480: STR 赋值变量缺少空后缀 /Admin/zcfgUpdate.asp,行 141 (OraDynaset.update这句)也试过OraDynaset.Fields("news_text").AppendChunk(news_text),这样的结果是不报错,但long字段地值如果太大的话这个字段的值为空,插不进去。

解决方案 »

  1.   

    貌似需要重新写入或者修改一下就可以了.
    ------------------------------
    ORA-01098: program Interface error during Long Insert 
    Cause: The application program interface could not insert or update a LONG column because of an internal error when a TTCGETV call fails. For example, a network read error or one of the parameters passed to the call is invalid. 
    Action: Retry the insert or update. 
      

  2.   

    http://topic.csdn.net/t/20031114/10/2459538.html
      

  3.   

    用修改的方法试过,不行啊@@
    CathySun118,你这个帖子和我的问题不一样啊,汗
      

  4.   

    asp中使用addnew方法,或许会好些,
    insert对长字段处理的不是很好。
    希望有点用,个人意见