首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

0x80040E14解决方案

2012-07-22 
0x80040E14错误类型:Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)[Microsoft][ODBC SQL Serv

0x80040E14
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]第 1 行: '<' 附近有语法错误。
/ckeditor/ckeditor/_samples/asp/gzixun1-3.asp, 第 18 行

附代码如下:
 <%
title = request.form("title")
ptype = request.form("ptype")
anthor = request.form("anthor")
news = request.form("editor1")
set conn1 = Server.CreateObject("ADODB.Connection")
conn1.open "driver={SQL Server};server=(local);uid=sa;pwd=123;database=wbw;"
tmpsql="update zixun set title='"&title&"',type='"&ptype&"',anthor='"&anthor&"',time1='"&now()&",news='"&news&"' where id='"&session("id")&"'"
conn1.execute tmpsql
session("gzixun1")=1
response.redirect "gzixun1-4.asp"
%> 

请高手帮帮忙。。。。。。拜托了。。。。。。

[解决办法]
少了个引号
tmpsql="update zixun set title='"&title&"',type='"&ptype&"',anthor='"&anthor&"',time1='"&now()&"',news='"&news&"' where id='"&session("id")&"'"

热点排行