[求助]基础问题,ASP连接SQL时出现的问题
我的CONN.ASP是这样写的:
dim conn
dim connstr
dim topTitle
topTitle=""
on error resume next
connstr = "Driver={SQL Server};Server=(local);Database=zongcheng;UID=sa;PWD=;"
set rs=server.createobject("ADODB.RECORDSET")
set conn=server.createobject("ADODB.CONNECTION")
if err then
err.clear
response.Write("数据传输错误!")
else
conn.open connstr
end if
.......
我的系统是win2003+sql server 2000 sp4
但是不知道怎么回事,好像总是链接有问题,我在网上DOWN下的一些asp+sql的源码也无法正确执行。
请问各位是哪可能有问题?
我用sqlserver的查询分析器来执行一些SQL语句,也是一切正常的。