access转MSSQL的问题,帮忙下!

chong6 2009-10-25 10:24:19
程序为ACCESS数据库的,我按了网上的方法,就是到管理工具添加数据库源,然后将我的mdb数据库导入到了mssql数据库!
然后我用了以下的SQL代码读取数据,总出错哦?
有什么办法的吗?


  <%
dim outstr,content,strParam
set rs = server.CreateObject(G_KW_RS)
sql = "select Ble_Topic.*,Ble_user.* from Ble_topic inner join Ble_user on Ble_topic.userid=Ble_user.id order by Ble_topic.id desc"
rs.open sql,conn,1,1
%>
<div id="stream" class="message">
<h3>看看</h3>
<ol class='wa'>
<%
dim intRsCount,intPageSize,intPageCount,intPageNo
intPageSize=15
if pageDivide(intRsCount,intPageSize,intPageCount,intPageNo) then
dim intTemp
for intTemp=1 to intPageSize
if rs.EOF then exit for
%>
<li><a href='info.asp?uid=<%=rs("Ble_user.id")%>' title='<%=rs("username")%>' class='avatar'><img src="<%=rs("headimg")%>"></a><a href='info.asp?uid=<%=rs("Ble_user.id")%>' title='<%=rs("username")%>' class='author'><%=rs("username")%></a> <span class='content'><%=left(rs("Ble_topic.content"),50)%></span><span class='stamp'><%=rs("updatetime")%></span></li>
<%
Rs.MoveNext
next
end if
%>
...全文
62 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shenchendt 2009-10-27
  • 打赏
  • 举报
回复
最好是到网上找个数据库转换器,你联系我,我给你
webhsjm 2009-10-27
  • 打赏
  • 举报
回复
转完后还要设置一下各个字段的属性,比如主键等。
ziyuanxian 2009-10-26
  • 打赏
  • 举报
回复
数据类型没转好吧

28,406

社区成员

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

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