ACCESS MSSQL 区别以及ASP+ACCESS 和 ASP+MSSQL语法区别
对于MSSQL 我只知道没有自动ID
我学的是ASP+ACCESS 老师只稍带讲了一点 ACCESS和MSSQL连接方式以及自动ID问题
假如 我现在想把ACCESS数据库 转换成 MSSQL 那么 我ASP语句需要做哪些改动?
举例:
<%
set rs=Server.CreateObject("adodb.recordset")
sql="select * from news order by id desc"
rs.open sql,conn,1,1
if not rs.eof and not rs.bof then
while not rs.eof
%>
<%=rs("title")%><br>
<%
rs.movenext
wend
end if
rs.close
set rs=nothing
%>
举例2:
<%
set rs=conn.execute("select * from news order by id desc")
if not rs.eof and not rs.bof then
while not rs.eof
%>
<%=rs("title")%><br>
<%
rs.movenext
wend
end if
rs.close
set rs=nothing
%>
这俩 用MSSQL连接 应该怎么改写 谢谢 请指教。 谢谢谢谢 十分感谢。