Microsoft OLE DB Provider for SQL Server 错误 '80040e14' “25”附近有语法错误。 /ywq/新闻发布系

旧时月光 2019-05-12 01:55:52
Microsoft OLE DB Provider for SQL Server 错误 '80040e14'
“25”附近有语法错误。
/ywq/新闻发布系统/22index.asp,行 4
代码
<!--#include file="25conn.asp"-->
<%
sql="select * from 25tbnews order by id desc"
set rs=conn.execute(sql)
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>企业新闻系统</title>
<style type="text/css">
<!--
table {
font-size: 9pt;
text-decoration: none;
border: 1px solid #000000;
}
-->
</style>
<style type="text/css">
<!--
a {
font-size: 9pt;
color: #000000;
text-decoration: none;
}
-->
</style>
</head>

<body>
<table width="598" border="0" align="center" cellpadding="5" cellspacing="0">
<tr align="center" bgcolor="#006699">
<td><font color="#FFFFFF">企业新闻显示页面</font></td>
</tr>
<%do while not rs.eof%>
<tr>
<td height="28" align="left">  <img src="images/page.gif" width="12" height="14"> <a href=show.asp?id=<%=rs("id")%> target="_blank"><%=rs("title")%></a>  (<font color="#006699"><%=rs("addtime")%>发表</font>) <font color="#006699"> 浏览过 <%=rs("count")%>次</font>
<a href="25del.asp?ID=<%=rs("ID")%>">删除</a>   
<a href="25login.asp?ID=<%=rs("ID")%>">更新</a></td>
</tr>
<%
rs.movenext
loop
%>
</table>
<div align="center"><br>

<!--#include file="25foot.asp"-->
</div>
</body>
</html>
...全文
148 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
hookee 2019-05-13
  • 打赏
  • 举报
回复
字符串写在一行内。
旧时月光 2019-05-12
  • 打赏
  • 举报
回复
<%
Set conn=Server.CreateObject("ADODB.Connection")
conn.Open "provider=sqloledb;data source=DESKTOP-EV62NFS;Uid=test;Pwd=123456;database=1606040225"
%>

这一段是25conn.asp

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧