标题:[求助]Microsoft OLE DB Provider for SQL Server 错误 '80040e14'
只看楼主
ASP汽车
Rank: 1
等 级:新手上路
帖 子:197
专家分:0
注 册:2007-7-4
 问题点数:0 回复次数:1 
[求助]Microsoft OLE DB Provider for SQL Server 错误 '80040e14'

strsql="SELECT * FROM songzw.Require_Bill INNER JOIN"
strsql=strsql&"REQUIRE_ESTI ON songzw.Require_Bill.FLOWSN = REQUIRE_ESTI.IT_NO Where REQUIRE_ESTI.EVALUATEMEMBER = '" & UserName & "' And REQUIRE_ESTI.IT_NO = '" & FLOWSN & "' "
response.Write(strsql)
set Rsr = server.CreateObject("Adodb.Recordset")
rsr.open strsql ,conn,1,1

nBENTFIT = request("BENTFIT")
REQUIREHOUR = request("REQUIREHOUR")
ANALYSEHOUR = request("ANALYSEHOUR")
CODEHOUR = request("CODEHOUR")
TESTHOUR = request("TESTHOUR")
ESTIMATETIME = request("ESTIMATETIME")
ItTotalTime = request("ItTotalTime")
' ItTotalTime = nREQUIREHOUR + nANALYSEHOUR + nCODEHOUR + nTESTHOUR
if nBENTFIT< ItTotalTime then
' if request("REQUIREHOUR") <>"" then
set cneo=server.createobject("ADODB.CONNECTION")
strOracon = "Provider=MSDAORA.1; Persist Security Info=True;User ID=eosms; Password=eofficesms; Data Source=EOFFICE"
cneo.open strOracon
sysdate=date()
temprs = cneo.Execute("select EOFFICE.S_SY_MsgSend.nextval from dual")

\ if ItUserID <>"" then
subject = "<center>部门:" & APPLY_DEPARTMENT & "<br>用户:" & APPLIER & "<br>需求主旨:" & MAJOR_IDEA & "<br>提出日期:" & APPLY_TIME & "<br>需求提出确定日" & Now & "<br>效益太低<br><br><br>http://eoffice.soueast-motor.com/newit/<br></center>"
sql1="insert into EOFFICE.SY_MsgSend(MS_ID,ms_content,ms_sendtime,ms_type,ms_sender,MS_Status,MS_MsgSource) VALUES ("&temprs(0)&",'"& subject &"',sysdate,'1',1,1,2)"
cneo.execute(sql1)
' response.write sql1
sql2="insert into EOFFICE.SY_MsgReceiver(ms_id, mr_receiver, mr_mobileno, mr_type, mr_isread,mr_readdate) values ("&temprs(0)&",' 130001 ','','1',0,sysdate)"
cneo.execute(sql2)
' response.write sql2

end if
set Rss=nothing

这是在OA上的短信功能,提示错误,就在红字那,奇怪都没有on咧,而且似乎没有错误呀,高手帮帮忙
Microsoft OLE DB Provider for SQL Server 错误 '80040e14'

在关键字 'ON' 附近有语法错误。

搜索更多相关主题的帖子: SQL Microsoft OLE Provider 
2007-10-17 09:51
永夜的极光
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:2721
专家分:1
注 册:2007-10-9
得分:0 
strsql="SELECT * FROM songzw.Require_Bill INNER JOIN"
strsql=strsql&"REQUIRE_ESTI ON songzw.Require_Bill.FLOWSN = REQUIRE_ESTI.IT_NO Where REQUIRE_ESTI.EVALUATEMEMBER = '" & UserName & "' And REQUIRE_ESTI.IT_NO = '" & FLOWSN & "' "

谁说没on的?
你可以把这个sql语句输出,然后放到数据库里面执行看看,我看好像是join后面少了一个空格

从BFS(Breadth First Study)到DFS(Depth First Study)
2007-10-17 10:10



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-178302-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.141861 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved